Stop the GOLD linker from complaining about relocations from .gnu.build.attributes...
authorNick Clifton <nickc@redhat.com>
Tue, 7 Jul 2020 08:54:09 +0000 (09:54 +0100)
committerNick Clifton <nickc@redhat.com>
Tue, 7 Jul 2020 08:54:09 +0000 (09:54 +0100)
* target-reloc.h (Default_comdat_behaviour:get): Ignore discarded
relocs that refer to the .gnu.build.attributes section.

gold/ChangeLog
gold/target-reloc.h

index a988d9ece63585bbbb5f527932f0ea9338cfcc9c..a81fe42f865908bc41c3087da0065475ee96458c 100644 (file)
@@ -1,3 +1,8 @@
+2020-07-07  Nick Clifton  <nickc@redhat.com>
+
+       * target-reloc.h: (Default_comdat_behaviour:get): Ignore discarded
+       relocs that refer to the .gnu.build.attributes section.
+
 2020-07-06  Nick Clifton  <nickc@redhat.com>
 
        * po/fr.po: Updated French translation.
index e9e3e5b0027107daa7eccebd72049f78b8aec706..748886e0ffdb85b8cfba82ced68a3ec053a37b93 100644 (file)
@@ -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;