linux-bug: fix undefined reference to `__gnu_mcount_nc' issue and bump PR
commit41d7e2a6eafed92148e9999bd02ca0d862f3eb22
authorDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Wed, 16 Feb 2011 19:19:07 +0000 (16 20:19 +0100)
committerDenis 'GNUtoo' Carikli <GNUtoo@no-log.org>
Thu, 17 Feb 2011 14:22:10 +0000 (17 15:22 +0100)
tree4c74abb7ed2bd45eb07cb8e040986b8db05e52a9
parent473aff453b3793ea80628efa5c54360735b29efe
linux-bug: fix undefined reference to `__gnu_mcount_nc' issue and bump PR

Without that fix we have:
    LD      .tmp_vmlinux1
  init/built-in.o: In function `run_init_process':
  calibrate.c:(.text+0x10): undefined reference to `__gnu_mcount_nc'
  init/built-in.o: In function `init_post':
  calibrate.c:(.text+0x3c): undefined reference to `__gnu_mcount_nc'
  init/built-in.o: In function `do_one_initcall':
  calibrate.c:(.text+0x148): undefined reference to `__gnu_mcount_nc'
  init/built-in.o: In function `name_to_dev_t':
  calibrate.c:(.text+0x2cc): undefined reference to `__gnu_mcount_nc'
  init/built-in.o: In function `set_reset_devices':
  calibrate.c:(.init.text+0x10): undefined reference to `__gnu_mcount_nc'
  init/built-in.o:calibrate.c:(.init.text+0x38): more undefined references to `__gnu_mcount_nc' follow
  make: *** [.tmp_vmlinux1] Error 1
  FATAL: oe_runmake failed

Thanks khem in #oe on Freenode on irc for help:
  Feb 14 19:21:26 <khem>  GNUtoo|laptop: are you using profiling
  [...]
  Feb 14 19:57:13 <khem>  GNUtoo|laptop: ok so here it your problem you are passing -pg
  Feb 14 19:57:16 <khem>  to compiler
  [...]
  Feb 14 19:58:11 <khem>  GNUtoo|laptop: thats only useful if you will provide mcount and other profiling hook implementation
  Feb 14 19:58:16 <khem>  compiler sort of expects it

  The solution I chose was to disable the CONFIG_FTRACE that added -pg (profiling compiler option)

Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@no-log.org>
recipes/linux/linux-bug/defconfig
recipes/linux/linux-bug_2.6.27.2.bb