diff options
Diffstat (limited to 'ld/testsuite/ld-elf')
-rw-r--r-- | ld/testsuite/ld-elf/comm-data2.ld | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/elf.exp | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/linkinfo1a.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/linkinfo1b.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr19617a.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr20828-v.ld | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr20828.ld | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr21233.ld | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/pr21384.ld | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/provide-hidden-1.ld | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/provide-hidden-2.ld | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/provide-hidden-s.ld | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/readelf.exp | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-elf/stab.d | 6 |
14 files changed, 16 insertions, 8 deletions
diff --git a/ld/testsuite/ld-elf/comm-data2.ld b/ld/testsuite/ld-elf/comm-data2.ld index 3244453..ea1ac5b 100644 --- a/ld/testsuite/ld-elf/comm-data2.ld +++ b/ld/testsuite/ld-elf/comm-data2.ld @@ -9,6 +9,7 @@ SECTIONS .rela.dyn : { *(.rela.*) } .interp : { *(.interp) } .hash : { *(.hash) } + .gnu.hash : { *(.gnu.hash) } .dynsym : { *(.dynsym) } .dynstr : { *(.dynstr) } . = 0x76540000; diff --git a/ld/testsuite/ld-elf/elf.exp b/ld/testsuite/ld-elf/elf.exp index 80a8c42..655f0da 100644 --- a/ld/testsuite/ld-elf/elf.exp +++ b/ld/testsuite/ld-elf/elf.exp @@ -104,7 +104,7 @@ if { [check_shared_lib_support] } then { setup_xfail "tic6x-*-*" run_ld_link_tests { {"Build shared library for next test" - "-shared" "" "" "note-3.s" {} "note-3.so" } + "-shared --hash-style=sysv" "" "" "note-3.s" {} "note-3.so" } {"Link using broken linker script" "--script note-3.t tmpdir/note-3.so" "" "" "" { { ld "note-3.l" } } diff --git a/ld/testsuite/ld-elf/linkinfo1a.d b/ld/testsuite/ld-elf/linkinfo1a.d index b5ccf6f..1aeaf00 100644 --- a/ld/testsuite/ld-elf/linkinfo1a.d +++ b/ld/testsuite/ld-elf/linkinfo1a.d @@ -1,5 +1,5 @@ #source: linkinfo1.s -#ld: -shared +#ld: -shared --hash-style=sysv #readelf: -SW #target: x86_64-* i?86-* diff --git a/ld/testsuite/ld-elf/linkinfo1b.d b/ld/testsuite/ld-elf/linkinfo1b.d index cb17683..f8e3bd0 100644 --- a/ld/testsuite/ld-elf/linkinfo1b.d +++ b/ld/testsuite/ld-elf/linkinfo1b.d @@ -1,5 +1,5 @@ #source: linkinfo1.s -#ld: -shared +#ld: -shared --hash-style=sysv #objcopy_linked_file: --strip-debug #readelf: -SW #target: x86_64-* i?86-* diff --git a/ld/testsuite/ld-elf/pr19617a.d b/ld/testsuite/ld-elf/pr19617a.d index 132021f..a565e29 100644 --- a/ld/testsuite/ld-elf/pr19617a.d +++ b/ld/testsuite/ld-elf/pr19617a.d @@ -1,5 +1,5 @@ #source: pr19617.s -#ld: -E --no-dynamic-linker +#ld: -E --no-dynamic-linker --hash-style=sysv #readelf : --dyn-syms --wide #target: *-*-linux* *-*-gnu* *-*-solaris* diff --git a/ld/testsuite/ld-elf/pr20828-v.ld b/ld/testsuite/ld-elf/pr20828-v.ld index cdba796..5800aa0 100644 --- a/ld/testsuite/ld-elf/pr20828-v.ld +++ b/ld/testsuite/ld-elf/pr20828-v.ld @@ -1,6 +1,7 @@ SECTIONS { .hash : { *(.hash) } + .gnu.hash : { *(.gnu.hash) } .dynsym : { *(.dynsym) } .dynstr : { *(.dynstr) } .gnu.version : { *(.gnu.version) } diff --git a/ld/testsuite/ld-elf/pr20828.ld b/ld/testsuite/ld-elf/pr20828.ld index 034887d..9bea8d2 100644 --- a/ld/testsuite/ld-elf/pr20828.ld +++ b/ld/testsuite/ld-elf/pr20828.ld @@ -8,6 +8,7 @@ SECTIONS } .dynamic : { *(.dynamic) } .hash : { *(.hash) } + .gnu.hash : { *(.gnu.hash) } .dynsym : { *(.dynsym) } .dynstr : { *(.dynstr) } .gnu.version : { *(.gnu.version) } diff --git a/ld/testsuite/ld-elf/pr21233.ld b/ld/testsuite/ld-elf/pr21233.ld index a3b547b..03a28cc 100644 --- a/ld/testsuite/ld-elf/pr21233.ld +++ b/ld/testsuite/ld-elf/pr21233.ld @@ -1,6 +1,7 @@ SECTIONS { .hash : { *(.hash) } + .gnu.hash : { *(.gnu.hash) } .dynsym : { *(.dynsym) } .dynstr : { *(.dynstr) } .rel.dyn : { *(.rel.dyn) } diff --git a/ld/testsuite/ld-elf/pr21384.ld b/ld/testsuite/ld-elf/pr21384.ld index 034887d..9bea8d2 100644 --- a/ld/testsuite/ld-elf/pr21384.ld +++ b/ld/testsuite/ld-elf/pr21384.ld @@ -8,6 +8,7 @@ SECTIONS } .dynamic : { *(.dynamic) } .hash : { *(.hash) } + .gnu.hash : { *(.gnu.hash) } .dynsym : { *(.dynsym) } .dynstr : { *(.dynstr) } .gnu.version : { *(.gnu.version) } diff --git a/ld/testsuite/ld-elf/provide-hidden-1.ld b/ld/testsuite/ld-elf/provide-hidden-1.ld index 479862d..ab10bc9 100644 --- a/ld/testsuite/ld-elf/provide-hidden-1.ld +++ b/ld/testsuite/ld-elf/provide-hidden-1.ld @@ -13,4 +13,5 @@ SECTIONS .dynstr : { *(.dynstr) } .dynamic : { *(.dynamic) } .hash : { *(.hash) } + .gnu.hash : { *(.gnu.hash) } } diff --git a/ld/testsuite/ld-elf/provide-hidden-2.ld b/ld/testsuite/ld-elf/provide-hidden-2.ld index 17e526b..3fc7513 100644 --- a/ld/testsuite/ld-elf/provide-hidden-2.ld +++ b/ld/testsuite/ld-elf/provide-hidden-2.ld @@ -9,4 +9,5 @@ SECTIONS .dynstr : { *(.dynstr) } .dynamic : { *(.dynamic) } .hash : { *(.hash) } + .gnu.hash : { *(.gnu.hash) } } diff --git a/ld/testsuite/ld-elf/provide-hidden-s.ld b/ld/testsuite/ld-elf/provide-hidden-s.ld index fc5761a..bd6aaf0 100644 --- a/ld/testsuite/ld-elf/provide-hidden-s.ld +++ b/ld/testsuite/ld-elf/provide-hidden-s.ld @@ -9,4 +9,5 @@ SECTIONS .dynstr : { *(.dynstr) } .dynamic : { *(.dynamic) } .hash : { *(.hash) } + .gnu.hash : { *(.gnu.hash) } } diff --git a/ld/testsuite/ld-elf/readelf.exp b/ld/testsuite/ld-elf/readelf.exp index 6831c19..82673f6 100644 --- a/ld/testsuite/ld-elf/readelf.exp +++ b/ld/testsuite/ld-elf/readelf.exp @@ -44,7 +44,7 @@ if [check_shared_lib_support] { [list \ "readelf version information" \ "$LFLAGS --no-dynamic-linker -e 0 --export-dynamic -T ver_def.ld\ - --version-script=ver_def.ver" \ + --hash-style=sysv --version-script=ver_def.ver" \ "" "" \ {ver_def.s} \ [list [list readelf --version-info ver_def$DUMP.vd]] \ diff --git a/ld/testsuite/ld-elf/stab.d b/ld/testsuite/ld-elf/stab.d index 346640d..27b99cb 100644 --- a/ld/testsuite/ld-elf/stab.d +++ b/ld/testsuite/ld-elf/stab.d @@ -5,10 +5,10 @@ #notarget: "ia64-*-*" "alpha*" # Disabled on alpha because the entry point may be above 4GB but the stabs -# value on 32 bits. +# value only 32 bits. #... - \[[0-9 ][0-9]\] \.stab +PROGBITS +0+ [0-9a-f]+ [0-9a-f]+ [0-9a-f]+ +[1-9]+ +0.* +.* \.stab +PROGBITS +0+ [0-9a-f]+ [0-9a-f]+ [0-9a-f]+ +[1-9][0-9]* +0.* #... - \[[0-9 ][0-9]\] \.stabstr +STRTAB +0+ [0-9a-f]+ [0-9a-f]+ 00 +0 +0.* +.* \.stabstr +STRTAB +0+ [0-9a-f]+ [0-9a-f]+ 00 +0 +0.* #... |