Fix problem running a few PowerPC linker tests when the .data section is retained.
authorNick Clifton <nickc@redhat.com>
Mon, 20 Jul 2020 13:57:38 +0000 (14:57 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 20 Jul 2020 13:57:38 +0000 (14:57 +0100)
* testsuite/ld-powerpc/powerpc.exp (ppcelftests): Use section name
.PPC.EMB.apuinfo instead of section number 2 in apuinfo tests.

ld/ChangeLog
ld/testsuite/ld-powerpc/powerpc.exp

index 13c25fa26a3a9b5cd044868c89e78684bb1ef3de..c4951288590ce8719ee1421a82aab1ea8620ee2e 100644 (file)
@@ -1,3 +1,8 @@
+2020-07-20  Nick Clifton  <nickc@redhat.com>
+
+       * testsuite/ld-powerpc/powerpc.exp (ppcelftests): Use section name
+       .PPC.EMB.apuinfo instead of section number 2 in apuinfo tests.
+
 2020-07-20  Alan Modra  <amodra@gmail.com>
 
        PR 26265
index bd269a2f8c1bebbc80df296d0dead01d0c78f276..9b1ee130190986f630efeb39ab2dc2cdf3925943 100644 (file)
@@ -103,13 +103,13 @@ set ppcelftests {
      {{objdump -hw reloc.d}} "reloc.so"}
     {"APUinfo section processing" "-melf32ppc" ""
      "-a32 -me500" {apuinfo1.s apuinfo-nul.s apuinfo2.s}
-     {{readelf -x2 apuinfo.rd}} "apuinfo"}
+     {{readelf -x.PPC.EMB.apuinfo apuinfo.rd}} "apuinfo"}
     {"APUinfo VLE section processing" "-melf32ppc" ""
      "-a32 -me500 -mvle" {apuinfo1.s apuinfo-vle.s apuinfo-vle2.s}
-     {{readelf -x2 apuinfo-vle.rd}} "apuinfo-vle"}
+     {{readelf -x.PPC.EMB.apuinfo apuinfo-vle.rd}} "apuinfo-vle"}
     {"APUinfo NULL section processing" "-melf32ppc" ""
      "-a32 -me500" {apuinfo-nul1.s apuinfo-nul.s}
-     {{readelf -x2 apuinfo-nul.rd}} "apuinfo"}
+     {{readelf -x.PPC.EMB.apuinfo apuinfo-nul.rd}} "apuinfo"}
     {"TLS32 static exec (markers)" "-melf32ppc" ""
      "-a32 --defsym TLSMARK=1"  {tls32.s tlslib32.s}
      {{objdump -dr tls32.d} {objdump -sj.got tls32.g}