diff options
author | Kees Cook <[email protected]> | 2020-08-21 12:42:43 -0700 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2020-09-01 09:50:35 +0200 |
commit | dfbe69689b4dee19021d8c315a5137b4790b5634 (patch) | |
tree | 307896ff584b2d099070cb640bc78ca5630aacab /scripts/gdb/linux/proc.py | |
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 <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Reviewed-by: Fangrui Song <[email protected]>
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/proc.py')
0 files changed, 0 insertions, 0 deletions