More support for ld --hash-style in the ld testsuite
authorAlan Modra <amodra@gmail.com>
Mon, 7 Aug 2017 21:45:29 +0000 (07:15 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 7 Aug 2017 21:52:36 +0000 (07:22 +0930)
These were discovered when running --hash-style=gnu as default, the
previous batch being --hash-style=both.

* testsuite/ld-aarch64/ifunc-1-local.d: Run ld with --hash-style=sysv.
* testsuite/ld-aarch64/ifunc-2-local.d: Likewise.
* testsuite/ld-aarch64/ifunc-3a.d: Likewise.
* testsuite/ld-frv/fdpic-pie-1.d: Likewise.
* testsuite/ld-frv/fdpic-pie-2.d: Likewise.
* testsuite/ld-frv/fdpic-pie-7.d: Likewise.
* testsuite/ld-frv/fdpic-pie-8.d: Likewise.
* testsuite/ld-arm/arm-elf.exp: Add --hash-style=sysv to "Using
Thumb lib by another lib" test's ld options.
* testsuite/ld-elf/note-3.l: Match .gnu.hash.
* testsuite/ld-elf/note-3.t: Add .gnu.hash output section.

ld/ChangeLog
ld/testsuite/ld-aarch64/ifunc-1-local.d
ld/testsuite/ld-aarch64/ifunc-2-local.d
ld/testsuite/ld-aarch64/ifunc-3a.d
ld/testsuite/ld-arm/arm-elf.exp
ld/testsuite/ld-elf/note-3.l
ld/testsuite/ld-elf/note-3.t
ld/testsuite/ld-frv/fdpic-pie-1.d
ld/testsuite/ld-frv/fdpic-pie-2.d
ld/testsuite/ld-frv/fdpic-pie-7.d
ld/testsuite/ld-frv/fdpic-pie-8.d

index 96dc608db247d4c142c8d3779ebcb31b9e6768f6..9af0eeb949ef7e6477a8b9335eae842df282ea2e 100644 (file)
@@ -1,3 +1,17 @@
+2017-08-08  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-aarch64/ifunc-1-local.d: Run ld with --hash-style=sysv.
+       * testsuite/ld-aarch64/ifunc-2-local.d: Likewise.
+       * testsuite/ld-aarch64/ifunc-3a.d: Likewise.
+       * testsuite/ld-frv/fdpic-pie-1.d: Likewise.
+       * testsuite/ld-frv/fdpic-pie-2.d: Likewise.
+       * testsuite/ld-frv/fdpic-pie-7.d: Likewise.
+       * testsuite/ld-frv/fdpic-pie-8.d: Likewise.
+       * testsuite/ld-arm/arm-elf.exp: Add --hash-style=sysv to "Using
+       Thumb lib by another lib" test's ld options.
+       * testsuite/ld-elf/note-3.l: Match .gnu.hash.
+       * testsuite/ld-elf/note-3.t: Add .gnu.hash output section.
+
 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-elf/pr21903.s (start): Removed.
index 0e307e0493a3eeaed7720575aff2aa6e79707599..779d973cb1b39bb2b4d8ebb013cbb3881f2e14e5 100644 (file)
@@ -1,4 +1,4 @@
-#ld: -shared
+#ld: -shared --hash-style=sysv
 #objdump: -dw
 #target: aarch64*-*-*
 
index 103f3e440b3dea14e6236b7b9d4cab0fd54f417e..27710bca045c080f1c26b9c6e193c87551b946f6 100644 (file)
@@ -1,4 +1,4 @@
-#ld: -shared
+#ld: -shared --hash-style=sysv
 #objdump: -dw
 #target: aarch64*-*-*
 
index 4f61a8bee3b254d729edc20ed0f997d5ce3030f0..3e19b335c59a063d09ae11bae21d29e908b275cb 100644 (file)
@@ -1,5 +1,5 @@
 #source: ifunc-3.s
-#ld: -shared
+#ld: -shared --hash-style=sysv
 #objdump: -dw
 #target: aarch64*-*-*
 
index 8bab9d8edbb999f07a7fd0c78fb98cccaef4cb85..3b33522076ec7eb4d6e500830b0de52e8a48b456 100644 (file)
@@ -333,7 +333,9 @@ set armelftests_nonacl {
      {{objdump -fdw mixed-app-v5.d} {objdump -Rw mixed-app.r}
       {readelf -Ds mixed-app.sym}}
      "mixed-app-v5"}
-    {"Using Thumb lib by another lib" "-shared tmpdir/mixed-lib.so" "" "" {use-thumb-lib.s}
+    {"Using Thumb lib by another lib"
+     "-shared --hash-style=sysv tmpdir/mixed-lib.so" ""
+     "" {use-thumb-lib.s}
      {{readelf -Ds use-thumb-lib.sym}}
      "use-thumb-lib.so"}
     {"TLS gnu shared library inlined trampoline"
index 551ebaa795a15efa31d768a7cc14f74b5a1cbc09..7e99bedc15b4f0081e063a77aaf4035ca3b330ef 100644 (file)
@@ -1,2 +1,2 @@
-.*warning: section '.hash' is being made into a note
+.*warning: section '(.gnu|).hash' is being made into a note
 .*
index 13324ae5470a3bb960e8a31e0587f9f2535ae643..47f3fe1c95c4c75656e26e38c6b2a05772a35e4d 100644 (file)
@@ -14,6 +14,7 @@ SECTIONS
      treated as notes...   */
   
   .hash : { *(.hash) }
+  .gnu.hash : { *(.gnu.hash) }
   
   .dynstr : { *(.dynstr) }
   .dynsym : { *(.dynsym) }
index 5369d07603220008ebc0b3328e556b224d47fb57..6b40e74b3696305d0fdc33c4c01890adf36cc398 100644 (file)
@@ -1,7 +1,7 @@
 #name: FRV uClinux PIC relocs to local symbols, pie linking
 #source: fdpic1.s
 #objdump: -DR -j .text -j .data -j .got -j .plt
-#ld: -pie
+#ld: -pie --hash-style=sysv
 
 .*:     file format elf.*frv.*
 
index 40c15325b403aeacea85f5886acb93aa720802ce..9e06d8f251f2c3a57da0f7168f1290fbf72a15d5 100644 (file)
@@ -1,7 +1,7 @@
 #name: FRV uClinux PIC relocs to global symbols, pie linking
 #source: fdpic2.s
 #objdump: -DR -j .text -j .data -j .got -j .plt
-#ld: -pie
+#ld: -pie --hash-style=sysv
 
 .*:     file format elf.*frv.*
 
index 7eceec2ea641884dd7963f20a7d1abb689a0ea68..3968c0bf3e815f716de960eb196daceb4746293f 100644 (file)
@@ -1,7 +1,7 @@
 #name: FRV uClinux PIC relocs to local symbols with addends, pie linking
 #source: fdpic7.s
 #objdump: -DR -j .text -j .data -j .got -j .plt
-#ld: -pie
+#ld: -pie --hash-style=sysv
 
 .*:     file format elf.*frv.*
 
index 8f7c34411bdce8c39c3359077eff241d256d8968..62f456b748187b5e7b1ccab2078d3908bb9c09a7 100644 (file)
@@ -1,7 +1,7 @@
 #name: FRV uClinux PIC relocs to global symbols with addends, pie linking
 #source: fdpic8.s
 #objdump: -DR -j .text -j .data -j .got -j .plt
-#ld: -pie
+#ld: -pie --hash-style=sysv
 
 .*:     file format elf.*frv.*
 
This page took 0.047385 seconds and 4 git commands to generate.