diff options
author | Kees Cook <[email protected]> | 2020-08-21 12:42:42 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2020-09-01 09:50:34 +0200 |
commit | 03c2b85cb7f13e9bd82cbe4201ede52177d433f5 (patch) | |
tree | 8d5d39f2164e529ec63a309896ab884eb47ec604 | |
parent | 527afc212231ea9d585b7709c0ab73263ecf0c85 (diff) |
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: Kees Cook <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
-rw-r--r-- | include/asm-generic/vmlinux.lds.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index 7616ff0b96ec..184b23d62784 100644 --- 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 \ } /** |