aboutsummaryrefslogtreecommitdiff
path: root/gold/target-reloc.h
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-07-07 09:54:09 +0100
committerNick Clifton <nickc@redhat.com>2020-07-07 09:54:09 +0100
commit4ac3fa49965e32610c7c625b9bdc530fcceb14ea (patch)
tree2a7d3433b901c7d462813c1106213b2255026734 /gold/target-reloc.h
parent3c6e74ce51d9439c2697cfec508ce885ddae8f21 (diff)
downloadgdb-4ac3fa49965e32610c7c625b9bdc530fcceb14ea.zip
gdb-4ac3fa49965e32610c7c625b9bdc530fcceb14ea.tar.gz
gdb-4ac3fa49965e32610c7c625b9bdc530fcceb14ea.tar.bz2
Stop the GOLD linker from complaining about relocations from .gnu.build.attributes sections to discarded code sections.
* target-reloc.h (Default_comdat_behaviour:get): Ignore discarded relocs that refer to the .gnu.build.attributes section.
Diffstat (limited to 'gold/target-reloc.h')
-rw-r--r--gold/target-reloc.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gold/target-reloc.h b/gold/target-reloc.h
index e9e3e5b..748886e 100644
--- a/gold/target-reloc.h
+++ b/gold/target-reloc.h
@@ -136,6 +136,7 @@ class Default_comdat_behavior
if (Layout::is_debug_info_section(name))
return CB_PRETEND;
if (strcmp(name, ".eh_frame") == 0
+ || is_prefix_of (".gnu.build.attributes", name)
|| strcmp(name, ".gcc_except_table") == 0)
return CB_IGNORE;
return CB_ERROR;