From db45a970740a18c320b780506429fc3e0749004d Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Tue, 16 Apr 2013 13:13:48 -0700 Subject: linux-yocto/3.8: Makefile: add -grecord-gcc-switches if using -mfentry Commit a2546fae [ftrace: Add -mfentry to Makefile on function tracer] adds support for using -mfentry when possible, whenever the ftrace CONFIG_FUNCTION_TRACER option is enabled. This unfortunately causes bogus dwarf debuginfo to be generated: gcc Bug 54793 - the location of a formal_parameter is not started from a function entry with -mfentry http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54793 This can be fixed by applying the gcc patch above, which will be present in gcc-4.8, but in the meantime, the problem is currently being worked around in different ways by various tools. One of those tools that we support in Yocto, Systemtap, requires the DW_AT_producer string contain -mfentry, which means that it's assuming record-gcc-switches is also used: SystemTap Bug 15123 - workaround for bad debuginfo for -mfentry http://sourceware.org/bugzilla/show_bug.cgi?id=15123 The lack of -grecord-gcc-switches and therefore a missing -mfentry string in Yocto leads to the following Yocto bug: Bug 4099 - Crosstap script check fails https://bugzilla.yoctoproject.org/show_bug.cgi?id=4099 Which is what this patch intends to fix. It only affects architectures that HAVE_FENTRY when CONFIG_FUNCTION_TRACER is turned on and in any case is just adding to the debuginfo, so there doesn't seem to be much risk to adding it. (From OE-Core rev: c04f611aa4bf77867fe78a005d09434226feb62c) Signed-off-by: Tom Zanussi Signed-off-by: Bruce Ashfield Signed-off-by: Richard Purdie --- meta/recipes-kernel/linux/linux-yocto-tiny_3.8.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-kernel/linux/linux-yocto-tiny_3.8.bb') diff --git a/meta/recipes-kernel/linux/linux-yocto-tiny_3.8.bb b/meta/recipes-kernel/linux/linux-yocto-tiny_3.8.bb index 1fe4139e8f..6ef143ebb2 100644 --- a/meta/recipes-kernel/linux/linux-yocto-tiny_3.8.bb +++ b/meta/recipes-kernel/linux/linux-yocto-tiny_3.8.bb @@ -12,7 +12,7 @@ LINUX_VERSION ?= "3.8.4" KMETA = "meta" -SRCREV_machine ?= "11998bd1f44b21cd0b8c0ca11cbd36865f14bfdc" +SRCREV_machine ?= "d9a45e3325030f7bd6f37947a7a0b12da7f602c3" SRCREV_meta ?= "27b63fdbd25ad1a37bacc05f49a205c150d21779" PR = "${INC_PR}.1" -- cgit v1.2.3-54-g00ecf