Commit 03c2b85c authored by Kees Cook's avatar Kees Cook Committed by Ingo Molnar

vmlinux.lds.h: Create COMMON_DISCARDS

Collect the common DISCARD sections for architectures that need more
specialized discard control than what the standard DISCARDS section
provides.
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Signed-off-by: default avatarIngo Molnar <mingo@kernel.org>
Cc: linux-arch@vger.kernel.org
Link: https://lore.kernel.org/r/20200821194310.3089815-2-keescook@chromium.org
parent 527afc21
...@@ -954,13 +954,16 @@ ...@@ -954,13 +954,16 @@
EXIT_DATA EXIT_DATA
#endif #endif
#define COMMON_DISCARDS \
*(.discard) \
*(.discard.*) \
*(.modinfo)
#define DISCARDS \ #define DISCARDS \
/DISCARD/ : { \ /DISCARD/ : { \
EXIT_DISCARDS \ EXIT_DISCARDS \
EXIT_CALL \ EXIT_CALL \
*(.discard) \ COMMON_DISCARDS \
*(.discard.*) \
*(.modinfo) \
} }
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment