mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-21 01:12:32 +08:00
More support for ld --hash-style in the ld testsuite
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.
This commit is contained in:
parent
7b005726f9
commit
8f5e83fb73
14
ld/ChangeLog
14
ld/ChangeLog
@ -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.
|
||||
|
@ -1,4 +1,4 @@
|
||||
#ld: -shared
|
||||
#ld: -shared --hash-style=sysv
|
||||
#objdump: -dw
|
||||
#target: aarch64*-*-*
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
#ld: -shared
|
||||
#ld: -shared --hash-style=sysv
|
||||
#objdump: -dw
|
||||
#target: aarch64*-*-*
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
#source: ifunc-3.s
|
||||
#ld: -shared
|
||||
#ld: -shared --hash-style=sysv
|
||||
#objdump: -dw
|
||||
#target: aarch64*-*-*
|
||||
|
||||
|
@ -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"
|
||||
|
@ -1,2 +1,2 @@
|
||||
.*warning: section '.hash' is being made into a note
|
||||
.*warning: section '(.gnu|).hash' is being made into a note
|
||||
.*
|
||||
|
@ -14,6 +14,7 @@ SECTIONS
|
||||
treated as notes... */
|
||||
|
||||
.hash : { *(.hash) }
|
||||
.gnu.hash : { *(.gnu.hash) }
|
||||
|
||||
.dynstr : { *(.dynstr) }
|
||||
.dynsym : { *(.dynsym) }
|
||||
|
@ -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.*
|
||||
|
||||
|
@ -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.*
|
||||
|
||||
|
@ -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.*
|
||||
|
||||
|
@ -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.*
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user