summaryrefslogtreecommitdiffstats
path: root/arch/arm64/kernel
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2020-08-21 12:42:52 -0700
committerIngo Molnar <mingo@kernel.org>2020-09-01 09:50:36 +0200
commit2883352bf801d093a04f269800b48bb8aa2515fb (patch)
treeccc3b4e1d32e0c82f7806dcb05961215cfcabed1 /arch/arm64/kernel
parent6e0a66d10c5b629369afa47b753d0ec46fa812dd (diff)
downloadlinux-stable-2883352bf801d093a04f269800b48bb8aa2515fb.tar.gz
linux-stable-2883352bf801d093a04f269800b48bb8aa2515fb.tar.bz2
linux-stable-2883352bf801d093a04f269800b48bb8aa2515fb.zip
arm64/build: Use common DISCARDS in linker script
Use the common DISCARDS rule for the linker script in an effort to regularize the linker script to prepare for warning on orphaned sections. Additionally clean up left-over no-op macros. Signed-off-by: Kees Cook <keescook@chromium.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Acked-by: Will Deacon <will@kernel.org> Link: https://lore.kernel.org/r/20200821194310.3089815-12-keescook@chromium.org
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r--arch/arm64/kernel/vmlinux.lds.S5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S
index c2b8426bf4bd..082e9efa2b43 100644
--- a/arch/arm64/kernel/vmlinux.lds.S
+++ b/arch/arm64/kernel/vmlinux.lds.S
@@ -6,6 +6,7 @@
*/
#define RO_EXCEPTION_TABLE_ALIGN 8
+#define RUNTIME_DISCARD_EXIT
#include <asm-generic/vmlinux.lds.h>
#include <asm/cache.h>
@@ -88,10 +89,8 @@ SECTIONS
* matching the same input section name. There is no documented
* order of matching.
*/
+ DISCARDS
/DISCARD/ : {
- EXIT_CALL
- *(.discard)
- *(.discard.*)
*(.interp .dynamic)
*(.dynsym .dynstr .hash .gnu.hash)
}