diff options
Diffstat (limited to 'ld/testsuite')
7 files changed, 50 insertions, 0 deletions
diff --git a/ld/testsuite/ld-mips-elf/global-local-symtab-n32.d b/ld/testsuite/ld-mips-elf/global-local-symtab-n32.d new file mode 100644 index 0000000..619295e --- /dev/null +++ b/ld/testsuite/ld-mips-elf/global-local-symtab-n32.d @@ -0,0 +1,6 @@ +#name: MIPS global/local symbol table split (n32) +#source: ../../../gas/testsuite/gas/mips/global-local-symtab.s +#as: -mno-pdr +#ld: -r -T global-local-symtab.ld +#readelf: -S +#dump: global-local-symtab-o32.d diff --git a/ld/testsuite/ld-mips-elf/global-local-symtab-n32t.d b/ld/testsuite/ld-mips-elf/global-local-symtab-n32t.d new file mode 100644 index 0000000..a87c1d6 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/global-local-symtab-n32t.d @@ -0,0 +1,6 @@ +#name: MIPS global/local symbol table split (n32) +#source: ../../../gas/testsuite/gas/mips/global-local-symtab.s +#as: -mno-pdr +#ld: -r -T global-local-symtab.ld +#readelf: -S +#dump: global-local-symtab-o32t.d diff --git a/ld/testsuite/ld-mips-elf/global-local-symtab-n64.d b/ld/testsuite/ld-mips-elf/global-local-symtab-n64.d new file mode 100644 index 0000000..b77625c --- /dev/null +++ b/ld/testsuite/ld-mips-elf/global-local-symtab-n64.d @@ -0,0 +1,8 @@ +#name: MIPS global/local symbol table split (n64) +#source: ../../../gas/testsuite/gas/mips/global-local-symtab.s +#as: -mno-pdr +#ld: -r -T global-local-symtab.ld +#readelf: -SW +#... + *\[ *[0-9]+\] +\.symtab +SYMTAB +[0-9a-f]+ +[0-9a-f]+ +[0-9a-f]+ +18 +3 +4 +8 +#pass diff --git a/ld/testsuite/ld-mips-elf/global-local-symtab-o32.d b/ld/testsuite/ld-mips-elf/global-local-symtab-o32.d new file mode 100644 index 0000000..c7e1cd2 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/global-local-symtab-o32.d @@ -0,0 +1,8 @@ +#name: MIPS global/local symbol table split (o32) +#source: ../../../gas/testsuite/gas/mips/global-local-symtab.s +#as: -mno-pdr +#ld: -r -T global-local-symtab.ld +#readelf: -S +#... + *\[ *[0-9]+\] +\.symtab +SYMTAB +[0-9a-f]+ +[0-9a-f]+ +[0-9a-f]+ +10 +3 +2 +4 +#pass diff --git a/ld/testsuite/ld-mips-elf/global-local-symtab-o32t.d b/ld/testsuite/ld-mips-elf/global-local-symtab-o32t.d new file mode 100644 index 0000000..612d557 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/global-local-symtab-o32t.d @@ -0,0 +1,8 @@ +#name: MIPS global/local symbol table split (o32) +#source: ../../../gas/testsuite/gas/mips/global-local-symtab.s +#as: -mno-pdr +#ld: -r -T global-local-symtab.ld +#readelf: -S +#... + *\[ *[0-9]+\] +\.symtab +SYMTAB +[0-9a-f]+ +[0-9a-f]+ +[0-9a-f]+ +10 +3 +4 +4 +#pass diff --git a/ld/testsuite/ld-mips-elf/global-local-symtab.ld b/ld/testsuite/ld-mips-elf/global-local-symtab.ld new file mode 100644 index 0000000..57ea4de --- /dev/null +++ b/ld/testsuite/ld-mips-elf/global-local-symtab.ld @@ -0,0 +1,8 @@ +SECTIONS +{ + .data : { *(.data) } + .symtab : { *(.symtab) } + .strtab : { *(.strtab) } + .shstrtab : { *(.shstrtab) } + /DISCARD/ : { *(*) } +} diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp index e98429c..4b257c3 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf.exp @@ -248,6 +248,7 @@ if {[istarget *-*-openbsd*] } { set abi_asflags(o32) -32 set irixemul 1 } +set tmips [expr $irixemul ? {""} : {"t"}] if { $linux_gnu } { run_ld_link_tests [list \ @@ -1657,3 +1658,8 @@ run_dump_test_n64 "pic-reloc-7" [list [list name (microMIPS)] \ [list as "-mmicromips"]] run_dump_test_o32 "reloc-pcrel-r6" + +# Global/local symbol table split tests. +run_dump_test_o32 "global-local-symtab-o32${tmips}" +run_dump_test_n32 "global-local-symtab-n32${tmips}" +run_dump_test_n64 "global-local-symtab-n64" |