generic-poky/meta/recipes-kernel
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
..
blktrace blktrace: add back do_install method 2013-01-22 15:52:44 +00:00
dtc dtc.inc: fix for libdir == /usr/lib64 2012-07-11 11:35:52 +01:00
kern-tools kern-tools: fix custom repository BSP generation 2013-04-15 22:35:28 +01:00
kexec kexec-tools: Add dependency on xz 2012-10-18 12:13:45 +01:00
kmod depmodwrapper-cross: Mark as machine specific 2013-03-02 16:35:46 +00:00
latencytop latencytop: add missing signed-off-by and re-add upstream status 2012-12-03 16:38:35 +00:00
libpfm libpfm4_4.3.0.bb: use compatible host to limit arches 2013-03-05 13:14:51 +00:00
linux linux-yocto/3.8: Makefile: add -grecord-gcc-switches if using -mfentry 2013-04-16 22:11:08 +01:00
linux-firmware linux-firmware: make the main package depend on all sub-packages 2013-04-05 18:21:49 +01:00
linux-libc-headers linux-libc-headers: update to v3.8 2013-03-02 22:45:27 +00:00
lttng lttng: babeltrace: Update to upstream version 1.1.0 2013-03-25 14:34:37 +00:00
modutils-initscripts modutils-initscripts: improve modutils.sh 2013-01-18 13:28:07 +00:00
oprofile oprofile: Add Upstream-Status and description to patch 2013-04-12 18:33:29 +01:00
perf perf: Fix parsing error 2013-03-19 13:25:34 +00:00
powertop powertop: cleanup update-alternatives deprecated code 2012-08-15 14:26:30 +01:00
sysprof sysprof: upgrade to 1.2.0 2013-03-05 13:14:57 +00:00
systemtap systemtap: Upgrade to v2.1 2013-03-18 13:18:22 +00:00
trace-cmd trace-cmd: Simplify SRC_URI patch entry 2012-11-21 16:56:02 +00:00