2001-05-25 H.J. Lu <hjl@gnu.org>

* gas/mips/e32el-rel2.d: New for little endian mips.
	* gas/mips/elfel-rel2.d: Likewise.
	* gas/mips/elfel-rel.d: Likewise.
	* gas/mips/mipsel16-f.d: Likewise.
	* gas/mips/telempic.d: Likewise.
	* gas/mips/tmipsel16-e.d: Likewise.

	* gas/mips/tempic.d: New for traditional mips.
	* gas/mips/tmips16-e.d: Likewise.

	* gas/mips/elf-rel.d: Handle alignment padding.
	* gas/mips/elf-rel2.d: Likewise.

	* gas/mips/mips.exp: Support little endian and traditional
	mips.
This commit is contained in:
H.J. Lu 2001-05-25 18:39:02 +00:00
parent aa6c001779
commit ff8715d024
12 changed files with 4667 additions and 12 deletions

View File

@ -1,3 +1,21 @@
2001-05-25 H.J. Lu <hjl@gnu.org>
* gas/mips/e32el-rel2.d: New for little endian mips.
* gas/mips/elfel-rel2.d: Likewise.
* gas/mips/elfel-rel.d: Likewise.
* gas/mips/mipsel16-f.d: Likewise.
* gas/mips/telempic.d: Likewise.
* gas/mips/tmipsel16-e.d: Likewise.
* gas/mips/tempic.d: New for traditional mips.
* gas/mips/tmips16-e.d: Likewise.
* gas/mips/elf-rel.d: Handle alignment padding.
* gas/mips/elf-rel2.d: Likewise.
* gas/mips/mips.exp: Support little endian and traditional
mips.
2001-05-24 H.J. Lu <hjl@gnu.org>
* gas/m68k/pcrel.d: Support 64bit BFD.

View File

@ -0,0 +1,30 @@
#objdump: -sr -j .text
#name: MIPS ELF reloc 2 (32-bit)
#source: elf-rel2.s
# Test the GPREL and LITERAL generation.
# FIXME: really this should check that the contents of .sdata, .lit4,
# and .lit8 are correct too.
.*: file format elf.*mips
RELOCATION RECORDS FOR \[\.text\]:
OFFSET TYPE VALUE
0+0000000 R_MIPS_LITERAL \.lit8\+0x0+0004000
0+0000004 R_MIPS_LITERAL \.lit8\+0x0+0004000
0+0000008 R_MIPS_LITERAL \.lit8\+0x0+0004000
0+000000c R_MIPS_LITERAL \.lit8\+0x0+0004000
0+0000010 R_MIPS_LITERAL \.lit8\+0x0+0004000
0+0000014 R_MIPS_LITERAL \.lit8\+0x0+0004000
0+0000018 R_MIPS_LITERAL \.lit4\+0x0+0004000
0+000001c R_MIPS_LITERAL \.lit4\+0x0+0004000
0+0000020 R_MIPS_LITERAL \.lit4\+0x0+0004000
0+0000024 R_MIPS_GPREL16 \.sdata\+0x0+0004000
0+0000028 R_MIPS_GPREL16 \.sdata\+0x0+0004000
0+000002c R_MIPS_GPREL16 \.sdata\+0x0+0004000
Contents of section \.text:
0000 00c082c7 04c083c7 08c082c7 0cc083c7 .*
0010 10c082c7 14c083c7 00c082c7 04c082c7 .*
0020 08c082c7 00c0828f 04c0828f 08c0828f .*

File diff suppressed because it is too large Load Diff

View File

@ -23,4 +23,4 @@ OFFSET TYPE VALUE
Contents of section \.text:
0000 d782c000 d782c008 d782c010 c782c000 .*
0010 c782c004 c782c008 8f82c000 8f82c004 .*
0020 8f82c008 .*
0020 8f82c008 00000000 00000000 00000000 .*

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,27 @@
#objdump: -sr -j .text
#name: MIPS ELF reloc 2
#source: elf-rel2.s
# Test the GPREL and LITERAL generation.
# FIXME: really this should check that the contents of .sdata, .lit4,
# and .lit8 are correct too.
.*: file format elf.*mips
RELOCATION RECORDS FOR \[\.text\]:
OFFSET TYPE VALUE
0+0000000 R_MIPS_LITERAL \.lit8\+0x0+0004000
0+0000004 R_MIPS_LITERAL \.lit8\+0x0+0004000
0+0000008 R_MIPS_LITERAL \.lit8\+0x0+0004000
0+000000c R_MIPS_LITERAL \.lit4\+0x0+0004000
0+0000010 R_MIPS_LITERAL \.lit4\+0x0+0004000
0+0000014 R_MIPS_LITERAL \.lit4\+0x0+0004000
0+0000018 R_MIPS_GPREL16 \.sdata\+0x0+0004000
0+000001c R_MIPS_GPREL16 \.sdata\+0x0+0004000
0+0000020 R_MIPS_GPREL16 \.sdata\+0x0+0004000
Contents of section \.text:
0000 00c082d7 08c082d7 10c082d7 00c082c7 .*
0010 04c082c7 08c082c7 00c0828f 04c0828f .*
0020 08c0828f 00000000 00000000 00000000 .*

View File

@ -10,9 +10,11 @@ if { [istarget mips*-*-*] } then {
set gpr_ilocks [expr [istarget mipstx39*-*-*]]
set addr32 [expr [istarget mipstx39*-*-*]]
if { [istarget mips*el-*-*] || [istarget "mips*-*-*linux*"] } then {
set tmips "t"
} else {
set tmips ""
}
run_dump_test "abs"
run_dump_test "add"
@ -103,17 +105,44 @@ if { [istarget mips*-*-*] } then {
run_dump_test "elf_e_flags3"
run_dump_test "elf_e_flags4"
run_dump_test "elf-rel"
if [istarget mips64*-*-*] {
run_dump_test "elf-rel2"
if [istarget mips*el-*-*] {
run_dump_test "elfel-rel"
} {
run_dump_test "e32-rel2"
}
run_dump_test "empic"
run_dump_test "elf-rel"
}
if [istarget mips64*-*-*] {
if [istarget mips*el-*-*] {
run_dump_test "elfel-rel2"
} {
run_dump_test "elf-rel2"
}
} {
if [istarget mips*el-*-*] {
run_dump_test "e32el-rel2"
} {
run_dump_test "e32-rel2"
}
}
if [istarget mips*el-*-*] {
run_dump_test "${tmips}elempic"
} {
run_dump_test "${tmips}empic"
}
if { !$no_mips16 } {
run_dump_test "mips16-e"
if [istarget mips*el-*-*] {
run_dump_test "${tmips}mipsel16-e"
} {
run_dump_test "${tmips}mips16-e"
}
setup_xfail "mips*-*-*"
run_dump_test "mips16-f"
if [istarget mips*el-*-*] {
run_dump_test "mipsel16-f"
} {
run_dump_test "mips16-f"
}
}
}
}

View File

@ -0,0 +1,34 @@
#objdump: -rst -mips16
#name: MIPS16 reloc 2
#as: -mips16
#source: mips16-f.s
# Check MIPS16 reloc processing
.*: +file format elf.*mips.*
SYMBOL TABLE:
0+0000000 l d \.text 0+0000000
0+0000000 l d \.data 0+0000000
0+0000000 l d \.bss 0+0000000
0+0000002 l \.text 0+0000000 0xf0 l1
0+0000000 l d foo 0+0000000
0+0000000 l d \.reginfo 0+0000000
0+0000000 l d \.mdebug 0+0000000
RELOCATION RECORDS FOR \[foo\]:
OFFSET TYPE VALUE
0+0000000 R_MIPS_32 l1
Contents of section \.text:
0000 00650065 00650065 00650065 00650065 .*
Contents of section \.data:
Contents of section \.reginfo:
0000 01000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section \.mdebug:
#...
Contents of section foo:
0000 00000003 00000000 00000000 00000000 .*

View File

@ -0,0 +1,153 @@
#objdump: -rst -mmips:4000
#name: MIPS empic
#as: -membedded-pic -mips3
#source: empic.s
# Check GNU-specific embedded relocs, for ELF.
.*: +file format elf.*mips.*
SYMBOL TABLE:
0+0000000 l d \.text 0+0000000
0+0000000 l d \.data 0+0000000
0+0000000 l d \.bss 0+0000000
0+0000004 l \.text 0+0000000 l2
0+0000100 l \.foo 0+0000000 l1
0+0000034 l \.text 0+0000000 l3
0+0000098 l \.text 0+0000000 l5
0+0000000 l d \.foo 0+0000000
0+0000004 l \.foo 0+0000000 l4
0+0000000 l d \.reginfo 0+0000000
0+0000000 l d \.mdebug 0+0000000
0+0000000 \*UND\* 0+0000000 g1
0+0000000 \*UND\* 0+0000000 g2
RELOCATION RECORDS FOR \[\.text\]:
OFFSET TYPE VALUE
0+0000004 R_MIPS_GNU_REL16_S2 g1
0+000000c R_MIPS_GNU_REL16_S2 g2
0+0000014 R_MIPS_GNU_REL16_S2 g2
0+000001c R_MIPS_GNU_REL16_S2 \.foo
0+0000024 R_MIPS_GNU_REL16_S2 \.text
0+000002c R_MIPS_GNU_REL16_S2 \.foo
0+0000034 R_MIPS_GNU_REL16_S2 \.text
0+000003c R_MIPS_GNU_REL_HI16 g1
0+0000040 R_MIPS_GNU_REL_LO16 g1
0+0000044 R_MIPS_GNU_REL_HI16 \.foo
0+0000048 R_MIPS_GNU_REL_LO16 \.foo
0+0000050 R_MIPS_32 g1
0+0000054 R_MIPS_32 \.foo
0+0000058 R_MIPS_32 \.text
0+000005c R_MIPS_PC32 g1
0+0000060 R_MIPS_PC32 \.foo
0+0000068 R_MIPS_64 g1
0+0000070 R_MIPS_64 \.foo
0+0000078 R_MIPS_64 \.text
0+0000080 R_MIPS_PC64 g1
0+0000088 R_MIPS_PC64 \.foo
0+0000098 R_MIPS_GNU_REL16_S2 \.text
0+000009c R_MIPS_GNU_REL16_S2 \.text
0+00000a0 R_MIPS_GNU_REL_HI16 \.text
0+00000a4 R_MIPS_GNU_REL_LO16 \.text
0+00000a8 R_MIPS_GNU_REL_HI16 \.text
0+00000ac R_MIPS_GNU_REL_LO16 \.text
0+00000b0 R_MIPS_32 \.text
0+00000b8 R_MIPS_64 \.text
0+00000cc R_MIPS_GNU_REL16_S2 \.text
0+00000d0 R_MIPS_GNU_REL16_S2 \.text
0+00000dc R_MIPS_32 \.text
0+00000e8 R_MIPS_64 \.text
RELOCATION RECORDS FOR \[\.foo\]:
OFFSET TYPE VALUE
0+0000004 R_MIPS_GNU_REL_HI16 g1
0+0000008 R_MIPS_GNU_REL_LO16 g1
0+000000c R_MIPS_GNU_REL_HI16 \.foo
0+0000010 R_MIPS_GNU_REL_LO16 \.foo
0+0000014 R_MIPS_GNU_REL_HI16 \.text
0+0000018 R_MIPS_GNU_REL_LO16 \.text
0+000001c R_MIPS_GNU_REL_HI16 g1
0+0000020 R_MIPS_GNU_REL_LO16 g1
0+0000024 R_MIPS_GNU_REL_HI16 g1
0+0000028 R_MIPS_GNU_REL_LO16 g1
0+000002c R_MIPS_GNU_REL_HI16 \.foo
0+0000030 R_MIPS_GNU_REL_LO16 \.foo
0+0000034 R_MIPS_GNU_REL_HI16 \.text
0+0000038 R_MIPS_GNU_REL_LO16 \.text
0+000003c R_MIPS_32 g1
0+0000040 R_MIPS_32 \.foo
0+0000044 R_MIPS_32 \.text
0+0000048 R_MIPS_PC32 g1
0+0000050 R_MIPS_PC32 \.text
0+0000058 R_MIPS_64 g1
0+0000060 R_MIPS_64 \.foo
0+0000068 R_MIPS_64 \.text
0+0000070 R_MIPS_PC64 g1
0+0000080 R_MIPS_PC64 \.text
0+0000088 R_MIPS_GNU_REL_HI16 g1
0+000008c R_MIPS_GNU_REL_LO16 g1
0+0000090 R_MIPS_GNU_REL_HI16 \.foo
0+0000094 R_MIPS_GNU_REL_LO16 \.foo
0+0000098 R_MIPS_GNU_REL_HI16 \.text
0+000009c R_MIPS_GNU_REL_LO16 \.text
0+00000a0 R_MIPS_GNU_REL_HI16 g1
0+00000a4 R_MIPS_GNU_REL_LO16 g1
0+00000a8 R_MIPS_GNU_REL_HI16 \.foo
0+00000ac R_MIPS_GNU_REL_LO16 \.foo
0+00000b0 R_MIPS_GNU_REL_HI16 \.text
0+00000b4 R_MIPS_GNU_REL_LO16 \.text
0+00000b8 R_MIPS_32 g1
0+00000bc R_MIPS_32 \.foo
0+00000c0 R_MIPS_32 \.text
0+00000c4 R_MIPS_PC32 g1
0+00000cc R_MIPS_PC32 \.text
0+00000d0 R_MIPS_64 g1
0+00000d8 R_MIPS_64 \.foo
0+00000e0 R_MIPS_64 \.text
0+00000e8 R_MIPS_PC64 g1
0+00000f8 R_MIPS_PC64 \.text
Contents of section \.text:
0000 00000000 ffff1104 00000000 ffff0010 .*
0010 00000000 ffff0010 00000000 3f001104 .*
0020 00000000 00001104 00000000 41000010 .*
0030 00000000 00000010 00000000 0000033c .*
0040 0c0063[26]4 0000033c 140163[26]4 d0ff0324 .*
0050 00000000 00010000 04000000 28000000 .*
0060 2c010000 d0ffffff 00000000 00000000 .*
0070 00010000 00000000 04000000 00000000 .*
0080 4c000000 00000000 54010000 00000000 .*
0090 d0ffffff ffffffff 32000010 33000010 .*
00a0 0000033c d80063[26]4 0000033c e80063[26]4 .*
00b0 cc000000 34000000 cc000000 00000000 .*
00c0 34000000 00000000 00000000 32000010 .*
00d0 33000010 34000324 3c000324 cc000000 .*
00e0 34000000 00000000 cc000000 00000000 .*
00f0 34000000 00000000 00000000 00000000 .*
Contents of section \.data:
Contents of section \.reginfo:
0000 08000080 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section \.mdebug:
#...
Contents of section \.foo:
0000 00000000 0000033c 040063[26]4 0000033c .*
0010 0c0163[26]4 0000033c 180063[26]4 0000033c .*
0020 1c0063[26]4 0000033c 240063[26]4 0000033c .*
0030 2c0163[26]4 0000033c 380063[26]4 00000000 .*
0040 00010000 04000000 44000000 fc000000 .*
0050 50000000 00000000 00000000 00000000 .*
0060 00010000 00000000 04000000 00000000 .*
0070 6c000000 00000000 fc000000 00000000 .*
0080 80000000 00000000 0000033c 8c0063[26]4 .*
0090 0000033c 940163[26]4 0000033c a00063[26]4 .*
00a0 0000033c a40063[26]4 0000033c ac0163[26]4 .*
00b0 0000033c b80063[26]4 04000000 04010000 .*
00c0 08000000 c4000000 00010000 d0000000 .*
00d0 04000000 00000000 04010000 00000000 .*
00e0 08000000 00000000 e8000000 00000000 .*
00f0 00010000 00000000 fc000000 00000000 .*
0100 00000000 00000000 00000000 00000000 .*

View File

@ -0,0 +1,153 @@
#objdump: -rst -mmips:4000
#name: MIPS empic
#as: -membedded-pic -mips3
#source: empic.s
# Check GNU-specific embedded relocs, for ELF.
.*: +file format elf.*mips.*
SYMBOL TABLE:
0+0000000 l d \.text 0+0000000
0+0000000 l d \.data 0+0000000
0+0000000 l d \.bss 0+0000000
0+0000004 l \.text 0+0000000 l2
0+0000100 l \.foo 0+0000000 l1
0+0000034 l \.text 0+0000000 l3
0+0000098 l \.text 0+0000000 l5
0+0000000 l d \.foo 0+0000000
0+0000004 l \.foo 0+0000000 l4
0+0000000 l d \.reginfo 0+0000000
0+0000000 l d \.mdebug 0+0000000
0+0000000 \*UND\* 0+0000000 g1
0+0000000 \*UND\* 0+0000000 g2
RELOCATION RECORDS FOR \[\.text\]:
OFFSET TYPE VALUE
0+0000004 R_MIPS_GNU_REL16_S2 g1
0+000000c R_MIPS_GNU_REL16_S2 g2
0+0000014 R_MIPS_GNU_REL16_S2 g2
0+000001c R_MIPS_GNU_REL16_S2 \.foo
0+0000024 R_MIPS_GNU_REL16_S2 \.text
0+000002c R_MIPS_GNU_REL16_S2 \.foo
0+0000034 R_MIPS_GNU_REL16_S2 \.text
0+000003c R_MIPS_GNU_REL_HI16 g1
0+0000040 R_MIPS_GNU_REL_LO16 g1
0+0000044 R_MIPS_GNU_REL_HI16 \.foo
0+0000048 R_MIPS_GNU_REL_LO16 \.foo
0+0000050 R_MIPS_32 g1
0+0000054 R_MIPS_32 \.foo
0+0000058 R_MIPS_32 \.text
0+000005c R_MIPS_PC32 g1
0+0000060 R_MIPS_PC32 \.foo
0+0000068 R_MIPS_64 g1
0+0000070 R_MIPS_64 \.foo
0+0000078 R_MIPS_64 \.text
0+0000080 R_MIPS_PC64 g1
0+0000088 R_MIPS_PC64 \.foo
0+0000098 R_MIPS_GNU_REL16_S2 \.text
0+000009c R_MIPS_GNU_REL16_S2 \.text
0+00000a0 R_MIPS_GNU_REL_HI16 \.text
0+00000a4 R_MIPS_GNU_REL_LO16 \.text
0+00000a8 R_MIPS_GNU_REL_HI16 \.text
0+00000ac R_MIPS_GNU_REL_LO16 \.text
0+00000b0 R_MIPS_32 \.text
0+00000b8 R_MIPS_64 \.text
0+00000cc R_MIPS_GNU_REL16_S2 \.text
0+00000d0 R_MIPS_GNU_REL16_S2 \.text
0+00000dc R_MIPS_32 \.text
0+00000e8 R_MIPS_64 \.text
RELOCATION RECORDS FOR \[\.foo\]:
OFFSET TYPE VALUE
0+0000004 R_MIPS_GNU_REL_HI16 g1
0+0000008 R_MIPS_GNU_REL_LO16 g1
0+000000c R_MIPS_GNU_REL_HI16 \.foo
0+0000010 R_MIPS_GNU_REL_LO16 \.foo
0+0000014 R_MIPS_GNU_REL_HI16 \.text
0+0000018 R_MIPS_GNU_REL_LO16 \.text
0+000001c R_MIPS_GNU_REL_HI16 g1
0+0000020 R_MIPS_GNU_REL_LO16 g1
0+0000024 R_MIPS_GNU_REL_HI16 g1
0+0000028 R_MIPS_GNU_REL_LO16 g1
0+000002c R_MIPS_GNU_REL_HI16 \.foo
0+0000030 R_MIPS_GNU_REL_LO16 \.foo
0+0000034 R_MIPS_GNU_REL_HI16 \.text
0+0000038 R_MIPS_GNU_REL_LO16 \.text
0+000003c R_MIPS_32 g1
0+0000040 R_MIPS_32 \.foo
0+0000044 R_MIPS_32 \.text
0+0000048 R_MIPS_PC32 g1
0+0000050 R_MIPS_PC32 \.text
0+0000058 R_MIPS_64 g1
0+0000060 R_MIPS_64 \.foo
0+0000068 R_MIPS_64 \.text
0+0000070 R_MIPS_PC64 g1
0+0000080 R_MIPS_PC64 \.text
0+0000088 R_MIPS_GNU_REL_HI16 g1
0+000008c R_MIPS_GNU_REL_LO16 g1
0+0000090 R_MIPS_GNU_REL_HI16 \.foo
0+0000094 R_MIPS_GNU_REL_LO16 \.foo
0+0000098 R_MIPS_GNU_REL_HI16 \.text
0+000009c R_MIPS_GNU_REL_LO16 \.text
0+00000a0 R_MIPS_GNU_REL_HI16 g1
0+00000a4 R_MIPS_GNU_REL_LO16 g1
0+00000a8 R_MIPS_GNU_REL_HI16 \.foo
0+00000ac R_MIPS_GNU_REL_LO16 \.foo
0+00000b0 R_MIPS_GNU_REL_HI16 \.text
0+00000b4 R_MIPS_GNU_REL_LO16 \.text
0+00000b8 R_MIPS_32 g1
0+00000bc R_MIPS_32 \.foo
0+00000c0 R_MIPS_32 \.text
0+00000c4 R_MIPS_PC32 g1
0+00000cc R_MIPS_PC32 \.text
0+00000d0 R_MIPS_64 g1
0+00000d8 R_MIPS_64 \.foo
0+00000e0 R_MIPS_64 \.text
0+00000e8 R_MIPS_PC64 g1
0+00000f8 R_MIPS_PC64 \.text
Contents of section \.text:
0000 00000000 0411ffff 00000000 1000ffff .*
0010 00000000 1000ffff 00000000 0411003f .*
0020 00000000 04110000 00000000 10000041 .*
0030 00000000 10000000 00000000 3c030000 .*
0040 [26]463000c 3c030000 [26]4630114 2403ffd0 .*
0050 00000000 00000100 00000004 00000028 .*
0060 0000012c ffffffd0 00000000 00000000 .*
0070 00000000 00000100 00000000 00000004 .*
0080 00000000 0000004c 00000000 00000154 .*
0090 ffffffff ffffffd0 10000032 10000033 .*
00a0 3c030000 [26]46300d8 3c030000 [26]46300e8 .*
00b0 000000cc 00000034 00000000 000000cc .*
00c0 00000000 00000034 00000000 10000032 .*
00d0 10000033 24030034 2403003c 000000cc .*
00e0 00000034 00000000 00000000 000000cc .*
00f0 00000000 00000034 00000000 00000000 .*
Contents of section \.data:
Contents of section \.reginfo:
0000 80000008 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section \.mdebug:
#...
Contents of section \.foo:
0000 00000000 3c030000 [26]4630004 3c030000 .*
0010 [26]463010c 3c030000 [26]4630018 3c030000 .*
0020 [26]463001c 3c030000 [26]4630024 3c030000 .*
0030 [26]463012c 3c030000 [26]4630038 00000000 .*
0040 00000100 00000004 00000044 000000fc .*
0050 00000050 00000000 00000000 00000000 .*
0060 00000000 00000100 00000000 00000004 .*
0070 00000000 0000006c 00000000 000000fc .*
0080 00000000 00000080 3c030000 [26]463008c .*
0090 3c030000 [26]4630194 3c030000 [26]46300a0 .*
00a0 3c030000 [26]46300a4 3c030000 [26]46301ac .*
00b0 3c030000 [26]46300b8 00000004 00000104 .*
00c0 00000008 000000c4 00000100 000000d0 .*
00d0 00000000 00000004 00000000 00000104 .*
00e0 00000000 00000008 00000000 000000e8 .*
00f0 00000000 00000100 00000000 000000fc .*
0100 00000000 00000000 00000000 00000000 .*

View File

@ -0,0 +1,42 @@
#objdump: -rst -mips16
#name: MIPS16 reloc
#as: -mips16
#source: mips16-e.s
# Check MIPS16 reloc processing
.*: +file format elf.*mips.*
SYMBOL TABLE:
0+0000000 l d \.text 0+0000000
0+0000000 l d \.data 0+0000000
0+0000000 l d \.bss 0+0000000
0+0000002 l \.text 0+0000000 0xf0 l1
0+0000004 l \.text 0+0000000 0xf0 L1.1
0+0000000 l d foo 0+0000000
0+0000000 l d \.reginfo 0+0000000
0+0000000 l d \.mdebug 0+0000000
0+0000000 \*UND\* 0+0000000 g1
RELOCATION RECORDS FOR \[foo\]:
OFFSET TYPE VALUE
0+0000000 R_MIPS_32 l1
0+0000004 R_MIPS_32 l1
0+0000008 R_MIPS_32 L1.1
0+000000c R_MIPS_32 L1.1
0+0000010 R_MIPS_32 g1
0+0000014 R_MIPS_32 g1
Contents of section \.text:
0000 65006500 65006500 65006500 65006500 .*
Contents of section \.data:
Contents of section \.reginfo:
0000 00000001 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section \.mdebug:
#...
Contents of section foo:
0000 00000000 00000008 00000000 00000003 .*
0010 00000000 00000008 00000000 00000000 .*

View File

@ -0,0 +1,42 @@
#objdump: -rst -mips16
#name: MIPS16 reloc
#as: -mips16
#source: mips16-e.s
# Check MIPS16 reloc processing
.*: +file format elf.*mips.*
SYMBOL TABLE:
0+0000000 l d \.text 0+0000000
0+0000000 l d \.data 0+0000000
0+0000000 l d \.bss 0+0000000
0+0000002 l \.text 0+0000000 0xf0 l1
0+0000004 l \.text 0+0000000 0xf0 L1.1
0+0000000 l d foo 0+0000000
0+0000000 l d \.reginfo 0+0000000
0+0000000 l d \.mdebug 0+0000000
0+0000000 \*UND\* 0+0000000 g1
RELOCATION RECORDS FOR \[foo\]:
OFFSET TYPE VALUE
0+0000000 R_MIPS_32 l1
0+0000004 R_MIPS_32 l1
0+0000008 R_MIPS_32 L1.1
0+000000c R_MIPS_32 L1.1
0+0000010 R_MIPS_32 g1
0+0000014 R_MIPS_32 g1
Contents of section \.text:
0000 00650065 00650065 00650065 00650065 .*
Contents of section \.data:
Contents of section \.reginfo:
0000 01000000 00000000 00000000 00000000 .*
0010 00000000 00000000 .*
Contents of section \.mdebug:
#...
Contents of section foo:
0000 00000000 08000000 00000000 03000000 .*
0010 00000000 08000000 00000000 00000000 .*