diff options
author | Thiemo Seufer <ths@networkno.de> | 2006-09-18 18:21:42 +0000 |
---|---|---|
committer | Thiemo Seufer <ths@networkno.de> | 2006-09-18 18:21:42 +0000 |
commit | 3b7882616d040dc544f908f13a086c1a9b3f738b (patch) | |
tree | 7d523295f8fe4556ac317bc08906e4891c9879f4 | |
parent | 674e82fc127e4cd6bcdfea02536b839320e80db8 (diff) | |
download | gdb-3b7882616d040dc544f908f13a086c1a9b3f738b.zip gdb-3b7882616d040dc544f908f13a086c1a9b3f738b.tar.gz gdb-3b7882616d040dc544f908f13a086c1a9b3f738b.tar.bz2 |
* ld-mips-elf/mips-elf.exp: Add test for R_MIPS16_GPREL relocations.
* ld-mips-elf/reloc-3-n32.d, ld-mips-elf/reloc-3.d: New files.
-rw-r--r-- | ld/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/mips-elf.exp | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/reloc-3-n32.d | 18 | ||||
-rw-r--r-- | ld/testsuite/ld-mips-elf/reloc-3.d | 16 |
4 files changed, 44 insertions, 0 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index 2bdeb12..cb0b2da 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,4 +1,10 @@ 2006-09-18 Thiemo Seufer <ths@networkno.de> + Maciej W. Rozycki <macro@mips.com> + + * ld-mips-elf/mips-elf.exp: Add test for R_MIPS16_GPREL relocations. + * ld-mips-elf/reloc-3-n32.d, ld-mips-elf/reloc-3.d: New files. + +2006-09-18 Thiemo Seufer <ths@networkno.de> * ld-elfcomm/elfcomm.exp: Enable the alignment test for mips*-*-*. diff --git a/ld/testsuite/ld-mips-elf/mips-elf.exp b/ld/testsuite/ld-mips-elf/mips-elf.exp index e0f0c8c..773211a 100644 --- a/ld/testsuite/ld-mips-elf/mips-elf.exp +++ b/ld/testsuite/ld-mips-elf/mips-elf.exp @@ -107,6 +107,10 @@ if $has_newabi { } run_dump_test "reloc-2" run_dump_test "reloc-merge-lo16" +run_dump_test "reloc-3" +if {$has_newabi} { + run_dump_test "reloc-3-n32" +} if {$has_newabi && $linux_gnu} { run_dump_test "eh-frame1-n32" run_dump_test "eh-frame1-n64" diff --git a/ld/testsuite/ld-mips-elf/reloc-3-n32.d b/ld/testsuite/ld-mips-elf/reloc-3-n32.d new file mode 100644 index 0000000..61cb276 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/reloc-3-n32.d @@ -0,0 +1,18 @@ +#name: R_MIPS16_GPREL reloc n32 +#source: ../../../gas/testsuite/gas/mips/elf-rel6.s +#as: -march=mips64 -mabi=n32 -EB +#objdump: --prefix-addresses -tdr --show-raw-insn +#ld: -Ttext 0x500000 -e 0x500000 -N -melf32btsmipn32 + + +.*: file format elf.*mips.* + +#... + +Disassembly of section \.text: +0+500000 <[^>]*> f010 8352 lb v0,-32750\(v1\) +0+500004 <[^>]*> f010 8353 lb v0,-32749\(v1\) +0+500008 <[^>]*> f252 8346 lb v0,-28090\(v1\) +0+50000c <[^>]*> 6500 nop +0+50000e <[^>]*> 6500 nop +#pass diff --git a/ld/testsuite/ld-mips-elf/reloc-3.d b/ld/testsuite/ld-mips-elf/reloc-3.d new file mode 100644 index 0000000..632d999 --- /dev/null +++ b/ld/testsuite/ld-mips-elf/reloc-3.d @@ -0,0 +1,16 @@ +#name: R_MIPS16_GPREL reloc +#source: ../../../gas/testsuite/gas/mips/elf-rel6.s +#objdump: --prefix-addresses -tdr --show-raw-insn +#ld: -Ttext 0x500000 -e 0x500000 -N + +.*: file format elf.*mips.* + +#... + +Disassembly of section \.text: +0+500000 <[^>]*> f010 8352 lb v0,-32750\(v1\) +0+500004 <[^>]*> f010 8353 lb v0,-32749\(v1\) +0+500008 <[^>]*> f252 8346 lb v0,-28090\(v1\) +0+50000c <[^>]*> 6500 nop +0+50000e <[^>]*> 6500 nop +#pass |