]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix failures in the GOLD testsuite when run on systems that have been built with...
authorNick Clifton <nickc@redhat.com>
Mon, 6 Jul 2020 10:22:39 +0000 (11:22 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 6 Jul 2020 10:22:39 +0000 (11:22 +0100)
* target-reloc.h (Default_comdat_behaviour:get): Ignore discarded
relocs that refer to the .gnu.build.attributes section.
* testsuite/script_test_7.sh: Adjust expected address of the .bss
section.
* testsuite/script_test_9.sh: Do not expect the .init section to
immediately follow the .text section in the mapping of sections to
segments.

gold/ChangeLog
gold/target-reloc.h
gold/testsuite/script_test_7.sh
gold/testsuite/script_test_9.sh

index aa53175322c819689bd104aae400444e2f74bf5e..8540332d26f675d2a6e2304923157fbc5c2c7aec 100644 (file)
@@ -1,3 +1,13 @@
+2020-07-06  Nick Clifton  <nickc@redhat.com>
+
+       * target-reloc.h (Default_comdat_behaviour:get): Ignore discarded
+       relocs that refer to the .gnu.build.attributes section.
+       * testsuite/script_test_7.sh: Adjust expected address of the .bss
+       section.
+       * testsuite/script_test_9.sh: Do not expect the .init section to
+       immediately follow the .text section in the mapping of sections to
+       segments.
+
 2020-07-06  Nick Clifton  <nickc@redhat.com>
 
        * po/fr.po: Updated French translation.
index e9e3e5b0027107daa7eccebd72049f78b8aec706..d1d0e135894786f26d5041f4a5772554fc9b11cd 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
+       || strncmp(name, ".gnu.build.attributes", 21) == 0
        || strcmp(name, ".gcc_except_table") == 0)
       return CB_IGNORE;
     return CB_ERROR;
index adddf6c34b1ee3f8f7d06668cb125cfac8d13fce..091875e384a53fff11102cbc2fb2a15f7fca90f3 100755 (executable)
@@ -40,4 +40,4 @@ check()
 
 check script_test_7.stdout "\\.interp[         ]*PROGBITS[     ]*0*10000100"
 check script_test_7.stdout "\\.data[   ]*PROGBITS[     ]*0*10200000"
-check script_test_7.stdout "\\.bss[    ]*NOBITS[       ]*0*10400..."
+check script_test_7.stdout "\\.bss[    ]*NOBITS[       ]*0*1040...."
index 3dcd3c49f3c41903ed1f14f1b118fa658bb7bb9c..da75b65c93a0b75861747d0cd7c3b8fa5cf32673 100755 (executable)
@@ -38,5 +38,6 @@ check()
 
 check script_test_9.stdout "LOAD .*R E "
 check script_test_9.stdout "LOAD .*RW "
-check script_test_9.stdout "00 .*\.text .init"
+check script_test_9.stdout "00 .*\.text"
+check script_test_9.stdout "00 .*\.init"
 check script_test_9.stdout "01 .*\.data "