projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
527afc2
)
vmlinux.lds.h: Create COMMON_DISCARDS
author
Kees Cook
<keescook@chromium.org>
Fri, 21 Aug 2020 19:42:42 +0000
(12:42 -0700)
committer
Ingo Molnar
<mingo@kernel.org>
Tue, 1 Sep 2020 07:50:34 +0000
(09:50 +0200)
Collect the common DISCARD sections for architectures that need more
specialized discard control than what the standard DISCARDS section
provides.
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: linux-arch@vger.kernel.org
Link:
https://lore.kernel.org/r/20200821194310.3089815-2-keescook@chromium.org
include/asm-generic/vmlinux.lds.h
patch
|
blob
|
history
diff --git
a/include/asm-generic/vmlinux.lds.h
b/include/asm-generic/vmlinux.lds.h
index
7616ff0
..
184b23d
100644
(file)
--- a/
include/asm-generic/vmlinux.lds.h
+++ b/
include/asm-generic/vmlinux.lds.h
@@
-954,13
+954,16
@@
EXIT_DATA
#endif
+#define COMMON_DISCARDS \
+ *(.discard) \
+ *(.discard.*) \
+ *(.modinfo)
+
#define DISCARDS \
/DISCARD/ : { \
EXIT_DISCARDS \
EXIT_CALL \
- *(.discard) \
- *(.discard.*) \
- *(.modinfo) \
+ COMMON_DISCARDS \
}
/**