aboutsummaryrefslogtreecommitdiffstats
path: root/lib/dynamic_debug.c
diff options
context:
space:
mode:
authorChris Metcalf <[email protected]>2016-08-03 20:46:30 +0000
committerLinus Torvalds <[email protected]>2016-08-04 12:50:07 +0000
commitc14b4bcfd92258a65eb82e3920ad970a81084c54 (patch)
treeffdcc0096f7cbb99c6343837835320774403d191 /lib/dynamic_debug.c
parentsparc: support static_key usage in non-module __exit sections (diff)
downloadkernel-c14b4bcfd92258a65eb82e3920ad970a81084c54.tar.gz
kernel-c14b4bcfd92258a65eb82e3920ad970a81084c54.zip
tile: support static_key usage in non-module __exit sections
Previously, all the __exit sections were just dropped by the link phase. However, if there are static_key (jump label) constructs in __exit sections that are not modules, the link fails with the message: `.exit.text' referenced in section `__jump_table' of xxx.o: defined in discarded section `.exit.text' of xxx.o Support this usage by keeping the .exit.text sections in the final image if JUMP_LABEL is defined, then discarding them once initialization is complete. Link: http://lkml.kernel.org/r/bfd7c107c610c30e992868ebfe2a5d796a097464.1467837322.git.jbaron@akamai.com Signed-off-by: Jason Baron <[email protected]> Signed-off-by: Chris Metcalf <[email protected]> Cc: "David S. Miller" <[email protected]> Cc: Arnd Bergmann <[email protected]> Cc: Benjamin Herrenschmidt <[email protected]> Cc: Heiko Carstens <[email protected]> Cc: Joe Perches <[email protected]> Cc: Martin Schwidefsky <[email protected]> Cc: Michael Ellerman <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/dynamic_debug.c')
0 files changed, 0 insertions, 0 deletions