diff options
author | Kees Cook <keescook@chromium.org> | 2020-08-21 12:42:43 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2020-09-01 09:50:35 +0200 |
commit | dfbe69689b4dee19021d8c315a5137b4790b5634 (patch) | |
tree | 307896ff584b2d099070cb640bc78ca5630aacab /arch/hexagon/kernel | |
parent | 03c2b85cb7f13e9bd82cbe4201ede52177d433f5 (diff) |
vmlinux.lds.h: Add .gnu.version* to COMMON_DISCARDS
For vmlinux linking, no architecture uses the .gnu.version* sections,
so remove it via the COMMON_DISCARDS macro in preparation for adding
--orphan-handling=warn more widely. This is a work-around for what
appears to be a bug[1] in ld.bfd which warns for this synthetic section
even when none is found in input objects, and even when no section is
emitted for an output object[2].
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=26153
[2] https://lore.kernel.org/lkml/202006221524.CEB86E036B@keescook/
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Reviewed-by: Fangrui Song <maskray@google.com>
Cc: linux-arch@vger.kernel.org
Link: https://lore.kernel.org/r/20200821194310.3089815-3-keescook@chromium.org
Diffstat (limited to 'arch/hexagon/kernel')
0 files changed, 0 insertions, 0 deletions