diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2013-02-19 01:10:06 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2013-02-19 01:10:06 +0000 |
commit | 897aea504d5f5ba75b021e0a817d4ea9337a378d (patch) | |
tree | dcb2e06fd6e52b9aed65119d926a849c52fbe46a /ld/testsuite/ld-sh/sh64 | |
parent | 11e965c4b6473d677e6a459e7d22e9ea7b7ebfb6 (diff) | |
download | gdb-897aea504d5f5ba75b021e0a817d4ea9337a378d.zip gdb-897aea504d5f5ba75b021e0a817d4ea9337a378d.tar.gz gdb-897aea504d5f5ba75b021e0a817d4ea9337a378d.tar.bz2 |
* lib/ld-lib.exp (run_ld_link_tests): Add another argument, pass
its contents to ar_simple_create and ld_simple_link after
objfiles.
* ld-aarch64/aarch64-elf.exp: Adjust accordingly.
* ld-alpha/alpha.exp: Likewise.
* ld-arm/arm-elf.exp: Likewise.
* ld-arm/export-class.exp: Likewise.
* ld-elf/comm-data.exp: Likewise.
* ld-elf/eh-group.exp: Likewise.
* ld-elf/elf.exp: Likewise.
* ld-elf/export-class.exp: Likewise.
* ld-elfvers/vers.exp: Likewise.
* ld-frv/tls.exp: Likewise.
* ld-i386/export-class.exp: Likewise.
* ld-i386/i386.exp: Likewise.
* ld-ia64/ia64.exp: Likewise.
* ld-libs/libs.exp: Likewise.
* ld-m68k/m68k.exp: Likewise.
* ld-metag/metag.exp: Likewise.
* ld-mips-elf/comm-data.exp: Likewise.
* ld-mips-elf/export-class.exp: Likewise.
* ld-mips-elf/mips-elf.exp: Likewise.
* ld-mn10300/mn10300.exp: Likewise.
* ld-pe/pe-compile.exp: Likewise.
* ld-pe/pe.exp: Likewise.
* ld-plugin/plugin.exp: Likewise.
* ld-powerpc/aix52.exp: Likewise.
* ld-powerpc/export-class.exp: Likewise.
* ld-powerpc/powerpc.exp: Likewise.
* ld-s390/s390.exp: Likewise.
* ld-sh/sh-vxworks.exp: Likewise.
* ld-sh/sh64/sh64.exp: Likewise.
* ld-sparc/sparc.exp: Likewise.
* ld-tic6x/tic6x.exp: Likewise.
* ld-tilegx/tilegx.exp: Likewise.
* ld-tilepro/tilepro.exp: Likewise.
* ld-undefined/entry.exp: Likewise.
* ld-vax-elf/vax-elf.exp: Likewise.
* ld-x86-64/dwarfreloc.exp: Likewise.
* ld-x86-64/export-class.exp: Likewise.
* ld-x86-64/x86-64.exp: Likewise.
* ld-xc16x/xc16x.exp: Likewise.
* ld-xstormy16/xstormy16.exp: Likewise.
* ld-xtensa/xtensa.exp: Likewise.
Diffstat (limited to 'ld/testsuite/ld-sh/sh64')
-rw-r--r-- | ld/testsuite/ld-sh/sh64/sh64.exp | 56 |
1 files changed, 28 insertions, 28 deletions
diff --git a/ld/testsuite/ld-sh/sh64/sh64.exp b/ld/testsuite/ld-sh/sh64/sh64.exp index af6cbfe..2c64775 100644 --- a/ld/testsuite/ld-sh/sh64/sh64.exp +++ b/ld/testsuite/ld-sh/sh64/sh64.exp @@ -35,8 +35,8 @@ if { [istarget sh64*-*-netbsd*] || [istarget sh5*-*-netbsd*] } then { } # List contains test-items with 3 items followed by 2 lists: -# 0:name 1:ld options 2:assembler options -# 3:filenames of assembler files 4: action and options. 5: name of output file +# 0:name 1:ld early options 2:ld late options 3:assembler options +# 4:filenames of assembler files 5: action and options. 6: name of output file # Actions: # objdump: Apply objdump options on result. Compare with regex (last arg). @@ -47,89 +47,89 @@ if { [istarget sh64*-*-netbsd*] || [istarget sh5*-*-netbsd*] } then { # references, 64-bit ABI" as for 32-bit ABI and ELF so we re-use it. set sh64tests { - {"SH64 linking, 64-bit ABI" "-mshelf64" + {"SH64 linking, 64-bit ABI" "-mshelf64" "" "--abi=64" {sh64-1.s sh64-2.s} {{objdump -sr abi64.sd} {objdump -x abi64.xd}} "abi64.bin" } - {"SH64 linking, 64-bit ABI, -no-expand" "-mshelf64" + {"SH64 linking, 64-bit ABI, -no-expand" "-mshelf64" "" "--abi=64 -no-expand" {sh64-1.s sh64-2.s} {{objdump -sr abixx-noexp.sd}} "abi64-noexp.bin" } - {"SH64 linking, 32-bit ABI" "-mshelf32" + {"SH64 linking, 32-bit ABI" "-mshelf32" "" "--abi=32" {sh64-1.s sh64-2.s} {{objdump -sr abi32.sd} {objdump -x abi32.xd}} "abi32.bin" } - {"SH64 linking, 32-bit ABI, -no-expand" "-mshelf32" + {"SH64 linking, 32-bit ABI, -no-expand" "-mshelf32" "" "--abi=32 -no-expand" {sh64-1.s sh64-2.s} {{objdump -sr abixx-noexp.sd}} "abi32-noexp.bin" } - {"SH64 linking, single multi-ISA object" "-mshelf32" + {"SH64 linking, single multi-ISA object" "-mshelf32" "" "--abi=32" {shmix-1.s} {{objdump -sr mix1.sd} {objdump -x mix1.xd}} "mix1.bin" } - {"SH64 linking, single multi-ISA object, -no-expand" "-mshelf32" + {"SH64 linking, single multi-ISA object, -no-expand" "-mshelf32" "" "--abi=32 -no-expand" {shmix-1.s} {{objdump -sr mix1-noexp.sd}} "mix1-noexp.bin" } - {"SH64 linking, two different-ISA objects" "-mshelf32" + {"SH64 linking, two different-ISA objects" "-mshelf32" "" "--abi=32" {shmix-2.s shmix-3.s} {{objdump -sr mix2.sd} {objdump -x mix2.xd}} "mix2.bin" } - {"SH64 linking, two different-ISA objects, -no-expand" "-mshelf32" + {"SH64 linking, two different-ISA objects, -no-expand" "-mshelf32" "" "--abi=32 -no-expand" {shmix-2.s shmix-3.s} {{objdump -sr mix2-noexp.sd}} "mix2-noexp.bin" } - {"SH64 linking, single SHcompact" "-mshelf32" + {"SH64 linking, single SHcompact" "-mshelf32" "" "--isa=SHcompact" {shcmp-1.s} {{objdump -sr cmpct1.sd} {objdump -x cmpct1.xd}} "cmpct1.bin" } - {"SH64 inter-file datalabel references, 64-bit ABI" "-mshelf64" + {"SH64 inter-file datalabel references, 64-bit ABI" "-mshelf64" "" "--abi=64" {shdl-1.s shdl-2.s} {{objdump -sr shdl64.sd} {objdump -x shdl64.xd}} "shdl64.bin" } - {"SH64 inter-file datalabel references, 32-bit ABI" "-mshelf32" + {"SH64 inter-file datalabel references, 32-bit ABI" "-mshelf32" "" "--abi=32" {shdl-1.s shdl-2.s} {{objdump -sr shdl64.sd} {objdump -x shdl32.xd}} "shdl32.bin" } - {"SH64 inter-file datalabel references and gc-sections, 32-bit ABI" "-mshelf32 --gc-sections" + {"SH64 inter-file datalabel references and gc-sections, 32-bit ABI" "-mshelf32 --gc-sections" "" "--abi=32" {dlsection-1.s } {{objdump -sr dlsection.sd}} "dlsection32.bin" } - {"SH64 inter-file datalabel references and gc-sections, 64-bit ABI" "-mshelf64 --gc-sections" + {"SH64 inter-file datalabel references and gc-sections, 64-bit ABI" "-mshelf64 --gc-sections" "" "--abi=64" {dlsection-1.s } {{objdump -sr dlsection.sd}} "dlsection64.bin" } - {"SH64 simple partial linking, 32-bit ABI" "-mshelf32 -r" + {"SH64 simple partial linking, 32-bit ABI" "-mshelf32 -r" "" "--abi=32" {rel-1.s rel-2.s} {{objdump -sx rel32.xd}} "rel32.bin" } - {"SH64 simple partial linking, 64-bit ABI" "-mshelf64 -r" + {"SH64 simple partial linking, 64-bit ABI" "-mshelf64 -r" "" "--abi=64" {rel-1.s rel-2.s} {{objdump -sx rel64.xd}} "rel64.bin" } - {"SH64 partial linking with datalabel references, 32-bit ABI" "-mshelf32 -r" + {"SH64 partial linking with datalabel references, 32-bit ABI" "-mshelf32 -r" "" "--abi=32" {reldl-1.s reldl-2.s} {{readelf {-s -r -x 1 -x 3} reldl32.rd}} "reldl32.bin" } - {"SH64 partial linking with datalabel references, 64-bit ABI" "-mshelf64 -r" + {"SH64 partial linking with datalabel references, 64-bit ABI" "-mshelf64 -r" "" "--abi=64" {reldl-1.s reldl-2.s} {{readelf {-s -r -x 1 -x 3} reldl64.rd}} "reldl64.bin" } - {"Handling SH64 assembler-generated .cranges" "-mshelf32" + {"Handling SH64 assembler-generated .cranges" "-mshelf32" "" "--abi=32" {crange-2a.s crange-1.s} {{readelf {-S -s -r -x 1 -x 2 -x 4} crange1.rd}} "crange1.bin" } - {"Handling SH64 assembler-generated .cranges, partial linking" "-mshelf32 -r" + {"Handling SH64 assembler-generated .cranges, partial linking" "-mshelf32 -r" "" "--abi=32" {crange-2a.s} {{readelf {-S -s -r -x 2 -x 6} crangerel1.rd}} "crangerel1.bin" } - {"Mixing SH64 assembler-generated with linker-generated .cranges" "-mshelf32" + {"Mixing SH64 assembler-generated with linker-generated .cranges" "-mshelf32" "" "--abi=32" {crange-2a.s crange-2b.s crange-1.s} {{readelf {-S -s -r -x 2 -x 4} crange2.rd}} "crange2.bin" } {"Mixing SH64 assembler-generated with linker-generated .cranges, partial linking" - "-mshelf32 -r" + "-mshelf32 -r" "" "--abi=32" {crange-2a.s crange-2c.s crange-2d.s crange-2e.s} {{readelf {-S -s -r -x 2 -x 6} crangerel2.rd}} "crangerel2.bin" } - {"Merge and use of SH64 .cranges, some not originally in order" "-mshelf32" + {"Merge and use of SH64 .cranges, some not originally in order" "-mshelf32" "" "--abi=32" {crange-2e.s crange-2f.s crange-2g.s crange-2a.s crange-2d.s crange-2i.s crange-2h.s crange-1.s} {{readelf {-S -s -x 2 -x 4} crange3.rd} {objdump -d crange3.dd}} "crange3.bin" } - {"Sorted SH64 .cranges, entry at SHcompact code" "-mshelf32 --entry diversion" + {"Sorted SH64 .cranges, entry at SHcompact code" "-mshelf32 --entry diversion" "" "--abi=32" {crange-2e.s crange-2f.s crange-2g.s crange-2a.s crange-2d.s crange-2i.s crange-2h.s crange-1.s} {{readelf {-h -S -s -x 2 -x 4} crange3-cmpct.rd}} "crange3-cmpct.bin" } - {"Sorted SH64 .cranges, entry at SHmedia code" "-mshelf32 --entry diversion2" + {"Sorted SH64 .cranges, entry at SHmedia code" "-mshelf32 --entry diversion2" "" "--abi=32" {crange-2e.s crange-2f.s crange-2g.s crange-2a.s crange-2d.s crange-2i.s crange-2h.s crange-1.s} {{readelf {-h -S -s -x 2 -x 4} crange3-media.rd}} "crange3-media.bin" } - {"SH64 Big Endianness" "-mshelf64 -Tendian.ld" + {"SH64 Big Endianness" "-mshelf64 -Tendian.ld" "" "--abi=64" {endian.s} {{objdump -s endian.sbd} {objdump -d endian.dbd}} "endianb.bin" } - {"SH64 Little Endianness" "-mshlelf64 -Tendian.ld" + {"SH64 Little Endianness" "-mshlelf64 -Tendian.ld" "" "--abi=64 --little" {endian.s} {{objdump -s endian.sld} {objdump -d endian.dld}} "endinanl.bin" } } |