Browse Source
* ld-mips-elf/rel32-o32.d, ld-mips-elf/rel32-n32.d, ld-mips-elf/rel64.d, ld-mips-elf/rel32.s, ld-mips-elf/rel64.s: New tests.binutils-2_14-branch
7 changed files with 75 additions and 1 deletions
@ -0,0 +1,16 @@ |
|||
#name: MIPS rel32 n32 |
|||
#source: rel32.s |
|||
#as: -KPIC -n32 |
|||
#readelf: -x 5 -r |
|||
#ld: -shared -melf32btsmipn32 |
|||
|
|||
Relocation section '.rel.dyn' at offset 0x3d0 contains 2 entries: |
|||
Offset Info Type Sym.Value Sym. Name |
|||
00000000 00000000 R_MIPS_NONE |
|||
000003f0 00000003 R_MIPS_REL32 |
|||
|
|||
Hex dump of section '.text': |
|||
0x000003e0 00000000 00000000 00000000 00000000 ................ |
|||
0x000003f0 000003f0 00000000 00000000 00000000 ................ |
|||
0x00000400 00000000 00000000 00000000 00000000 ................ |
|||
0x00000410 00000000 00000000 00000000 00000000 ................ |
|||
@ -0,0 +1,16 @@ |
|||
#name: MIPS rel32 o32 |
|||
#source: rel32.s |
|||
#as: -KPIC -32 |
|||
#readelf: -x 6 -r |
|||
#ld: -shared -melf32btsmip |
|||
|
|||
Relocation section '.rel.dyn' at offset 0x3e0 contains 2 entries: |
|||
Offset Info Type Sym.Value Sym. Name |
|||
00000000 00000000 R_MIPS_NONE |
|||
00000400 00000003 R_MIPS_REL32 |
|||
|
|||
Hex dump of section '.text': |
|||
0x000003f0 00000000 00000000 00000000 00000000 ................ |
|||
0x00000400 00000400 00000000 00000000 00000000 ................ |
|||
0x00000410 00000000 00000000 00000000 00000000 ................ |
|||
0x00000420 00000000 00000000 00000000 00000000 ................ |
|||
@ -0,0 +1,4 @@ |
|||
.space 16 |
|||
.Lfoo: |
|||
.word .Lfoo |
|||
.space 16 |
|||
@ -0,0 +1,19 @@ |
|||
#name: MIPS rel64 n64 |
|||
#source: rel64.s |
|||
#as: -KPIC -64 |
|||
#readelf: -x 6 -r |
|||
#ld: -shared -melf64btsmip |
|||
|
|||
Relocation section '.rel.dyn' at offset 0x5b0 contains 2 entries: |
|||
Offset Info Type Sym. Value Sym. Name |
|||
000000000000 000000000000 R_MIPS_NONE |
|||
Type2: R_MIPS_NONE |
|||
Type3: R_MIPS_NONE |
|||
0000000005e0 000000001203 R_MIPS_REL32 |
|||
Type2: R_MIPS_64 |
|||
Type3: R_MIPS_NONE |
|||
|
|||
Hex dump of section '.text': |
|||
0x000005d0 00000000 00000000 00000000 00000000 ................ |
|||
0x000005e0 00000000 000005e0 00000000 00000000 ................ |
|||
0x000005f0 00000000 00000000 00000000 00000000 ................ |
|||
@ -0,0 +1,4 @@ |
|||
.space 16 |
|||
.Lfoo: |
|||
.dword .Lfoo |
|||
.space 16 |
|||
Loading…
Reference in new issue