generic-poky/meta/recipes-kernel/linux
Bruce Ashfield db45a97074 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 <tom.zanussi@linux.intel.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2013-04-16 22:11:08 +01:00
..
linux-dummy linux-dummy: add license and LIC_FILES_CHKSUM 2011-01-20 21:36:59 +00:00
linux-yocto kernel.bbclass: fix INC directory for SLANG 2012-08-25 14:47:00 +01:00
linux-dtb.inc linux-dtb: fix whitespace in bash functions 2013-04-04 14:08:06 +01:00
linux-dummy.bb PACKAGES_DYNAMIC: use regexp not glob 2012-10-19 18:02:26 +01:00
linux-yocto-dev.bb linux-yocto/dev: linux-yocto development tree tracking recipe 2013-02-06 09:37:26 +00:00
linux-yocto-rt_3.2.bb linux-yocto: KERNEL_FEATURES should reference full scc files 2013-02-06 09:37:27 +00:00
linux-yocto-rt_3.4.bb kern-tools: fix non-local patch/config location 2013-04-12 17:00:45 +01:00
linux-yocto-rt_3.8.bb linux-yocto/3.8: Makefile: add -grecord-gcc-switches if using -mfentry 2013-04-16 22:11:08 +01:00
linux-yocto-tiny_3.2.bb linux-yocto/3.2: update to v3.2.32 and 3.2.32-rt48 2012-11-20 15:31:51 +00:00
linux-yocto-tiny_3.4.bb kern-tools: fix non-local patch/config location 2013-04-12 17:00:45 +01:00
linux-yocto-tiny_3.8.bb linux-yocto/3.8: Makefile: add -grecord-gcc-switches if using -mfentry 2013-04-16 22:11:08 +01:00
linux-yocto.inc kernel: Add kernel headers to kernel-dev package 2012-07-04 17:40:33 +01:00
linux-yocto_3.2.bb linux-yocto: KERNEL_FEATURES should reference full scc files 2013-02-06 09:37:27 +00:00
linux-yocto_3.4.bb kern-tools: fix non-local patch/config location 2013-04-12 17:00:45 +01:00
linux-yocto_3.8.bb linux-yocto/3.8: Makefile: add -grecord-gcc-switches if using -mfentry 2013-04-16 22:11:08 +01:00