diff options
author | Kees Cook <keescook@chromium.org> | 2020-08-21 21:42:45 +0200 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-09-01 09:50:35 +0200 |
commit | c604abc3f6e3030f3a3022b184ed7d3780c34d30 (patch) | |
tree | 9b4db6d57fd2689afa8bdd69868ec35439d1c0f5 /arch/openrisc | |
parent | vmlinux.lds.h: Avoid KASAN and KCSAN's unwanted sections (diff) | |
download | linux-c604abc3f6e3030f3a3022b184ed7d3780c34d30.tar.xz linux-c604abc3f6e3030f3a3022b184ed7d3780c34d30.zip |
vmlinux.lds.h: Split ELF_DETAILS from STABS_DEBUG
The .comment section doesn't belong in STABS_DEBUG. Split it out into a
new macro named ELF_DETAILS. This will gain other non-debug sections
that need to be accounted for when linking with --orphan-handling=warn.
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-5-keescook@chromium.org
Diffstat (limited to 'arch/openrisc')
-rw-r--r-- | arch/openrisc/kernel/vmlinux.lds.S | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/openrisc/kernel/vmlinux.lds.S b/arch/openrisc/kernel/vmlinux.lds.S index 60449fd7f16f..d287dbb84d0f 100644 --- a/arch/openrisc/kernel/vmlinux.lds.S +++ b/arch/openrisc/kernel/vmlinux.lds.S @@ -115,6 +115,7 @@ SECTIONS /* Throw in the debugging sections */ STABS_DEBUG DWARF_DEBUG + ELF_DETAILS /* Sections to be discarded -- must be last */ DISCARDS |