mirror of https://gitee.com/openkylin/linux.git
e390f9a968
The '__unreachable' and '__func_stack_frame_non_standard' sections are
only used at compile time. They're discarded for vmlinux but they
should also be discarded for modules.
Since this is a recurring pattern, prefix the section names with
".discard.". It's a nice convention and vmlinux.lds.h already discards
such sections.
Also remove the 'a' (allocatable) flag from the __unreachable section
since it doesn't make sense for a discarded section.
Suggested-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Jessica Yu <jeyu@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Fixes:
|
||
---|---|---|
.. | ||
Documentation | ||
arch/x86 | ||
.gitignore | ||
Build | ||
Makefile | ||
arch.h | ||
builtin-check.c | ||
builtin.h | ||
elf.c | ||
elf.h | ||
objtool.c | ||
special.c | ||
special.h | ||
warn.h |