diff options
author | Peter Oberparleiter <[email protected]> | 2018-09-13 12:59:59 +0200 |
---|---|---|
committer | Stephen Rothwell <[email protected]> | 2018-10-12 08:54:58 +1100 |
commit | 8dcf86caa1e3daf4a6ccf38e97f4f752b411f829 (patch) | |
tree | ae7b52e3e4b92eb90fbe745d75550a54c034292b /tools/perf/util/trace-event-scripting.c | |
parent | 0778a9f2dd924c3af41971ba40eec44793aea531 (diff) |
vmlinux.lds.h: Fix incomplete .text.exit discards
Enabling CONFIG_GCOV_PROFILE_ALL=y causes linker errors on ARM:
`.text.exit' referenced in section `.ARM.exidx.text.exit':
defined in discarded section `.text.exit'
`.text.exit' referenced in section `.fini_array.00100':
defined in discarded section `.text.exit'
And related errors on NDS32:
`.text.exit' referenced in section `.dtors.65435':
defined in discarded section `.text.exit'
The gcov compiler flags cause certain compiler versions to generate
additional destructor-related sections that are not yet handled by the
linker script, resulting in references between discarded and
non-discarded sections.
Since destructors are not used in the Linux kernel, fix this by
discarding these additional sections.
Reported-by: Arnd Bergmann <[email protected]>
Tested-by: Arnd Bergmann <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Reported-by: Greentime Hu <[email protected]>
Tested-by: Masami Hiramatsu <[email protected]>
Signed-off-by: Peter Oberparleiter <[email protected]>
Signed-off-by: Stephen Rothwell <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions