2001-06-06 H.J. Lu <hjl@gnu.org>
* gas/mips/elf-rel3.s: New file. * gas/mips/elf-rel3.d: Likewise. * gas/mips/elfel-rel3.s: Likewise. * gas/mips/elfel-rel3.d: Likewise. * gas/mips/mips.exp: Run elf-rel3/elfel-rel3.
This commit is contained in:
parent
c5f5341b0e
commit
a90335ee82
6 changed files with 63 additions and 0 deletions
|
@ -1,3 +1,12 @@
|
||||||
|
2001-06-06 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
|
* gas/mips/elf-rel3.s: New file.
|
||||||
|
* gas/mips/elf-rel3.d: Likewise.
|
||||||
|
* gas/mips/elfel-rel3.s: Likewise.
|
||||||
|
* gas/mips/elfel-rel3.d: Likewise.
|
||||||
|
|
||||||
|
* gas/mips/mips.exp: Run elf-rel3/elfel-rel3.
|
||||||
|
|
||||||
2001-06-06 H.J. Lu <hjl@gnu.org>
|
2001-06-06 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* gas/elf/elf.exp (run_list_test): New.
|
* gas/elf/elf.exp (run_list_test): New.
|
||||||
|
|
13
gas/testsuite/gas/mips/elf-rel3.d
Normal file
13
gas/testsuite/gas/mips/elf-rel3.d
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#objdump: -sr -j .data
|
||||||
|
#name: MIPS ELF reloc 3
|
||||||
|
|
||||||
|
.*: file format elf.*mips
|
||||||
|
|
||||||
|
RELOCATION RECORDS FOR \[\.data\]:
|
||||||
|
OFFSET TYPE VALUE
|
||||||
|
0+0000004 R_MIPS_32 b
|
||||||
|
0+0000008 R_MIPS_32 .data
|
||||||
|
|
||||||
|
|
||||||
|
Contents of section .data:
|
||||||
|
0000 12121212 fffffffc 00000000 00000000 ................
|
11
gas/testsuite/gas/mips/elf-rel3.s
Normal file
11
gas/testsuite/gas/mips/elf-rel3.s
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
.data
|
||||||
|
.type x,@object
|
||||||
|
.size x,4
|
||||||
|
x:
|
||||||
|
.word 0x12121212
|
||||||
|
.globl b
|
||||||
|
.type b,@object
|
||||||
|
.size b,8
|
||||||
|
b:
|
||||||
|
.word b-4
|
||||||
|
.word x
|
13
gas/testsuite/gas/mips/elfel-rel3.d
Normal file
13
gas/testsuite/gas/mips/elfel-rel3.d
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
#objdump: -sr -j .data
|
||||||
|
#name: MIPS ELF reloc 3
|
||||||
|
|
||||||
|
.*: file format elf.*mips
|
||||||
|
|
||||||
|
RELOCATION RECORDS FOR \[\.data\]:
|
||||||
|
OFFSET TYPE VALUE
|
||||||
|
0+0000004 R_MIPS_32 b
|
||||||
|
0+0000008 R_MIPS_32 .data
|
||||||
|
|
||||||
|
|
||||||
|
Contents of section .data:
|
||||||
|
0000 12121212 04000000 00000000 00000000 ................
|
11
gas/testsuite/gas/mips/elfel-rel3.s
Normal file
11
gas/testsuite/gas/mips/elfel-rel3.s
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
.data
|
||||||
|
.type x,@object
|
||||||
|
.size x,4
|
||||||
|
x:
|
||||||
|
.word 0x12121212
|
||||||
|
.globl b
|
||||||
|
.type b,@object
|
||||||
|
.size b,8
|
||||||
|
b:
|
||||||
|
.word b+4
|
||||||
|
.word x
|
|
@ -125,6 +125,12 @@ if { [istarget mips*-*-*] } then {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if [istarget mips*el-*-*] {
|
||||||
|
run_dump_test "elfel-rel3"
|
||||||
|
} {
|
||||||
|
run_dump_test "elf-rel3"
|
||||||
|
}
|
||||||
|
|
||||||
if [istarget mips*el-*-*] {
|
if [istarget mips*el-*-*] {
|
||||||
run_dump_test "${tmips}elempic"
|
run_dump_test "${tmips}elempic"
|
||||||
} {
|
} {
|
||||||
|
|
Loading…
Reference in a new issue