* gas/mips/elf-rel.s: New file.
[binutils.git] / gas / testsuite / gas / mips / e32-rel2.d
blobcc494164cf63522a08c47b65f6c23a9c2e13297b
1 #objdump: -sr -j .text
2 #name: MIPS ELF reloc 2 (32-bit)
3 #source: elf-rel2.s
5 # Test the GPREL and LITERAL generation.
6 # FIXME: really this should check that the contents of .sdata, .lit4,
7 # and .lit8 are correct too.
9 .*: file format elf.*mips
11 RELOCATION RECORDS FOR \[\.text\]:
12 OFFSET TYPE VALUE
13 0+0000000 R_MIPS_LITERAL \.lit8\+0x0+0004000
14 0+0000004 R_MIPS_LITERAL \.lit8\+0x0+0004000
15 0+0000008 R_MIPS_LITERAL \.lit8\+0x0+0004000
16 0+000000c R_MIPS_LITERAL \.lit8\+0x0+0004000
17 0+0000010 R_MIPS_LITERAL \.lit8\+0x0+0004000
18 0+0000014 R_MIPS_LITERAL \.lit8\+0x0+0004000
19 0+0000018 R_MIPS_LITERAL \.lit4\+0x0+0004000
20 0+000001c R_MIPS_LITERAL \.lit4\+0x0+0004000
21 0+0000020 R_MIPS_LITERAL \.lit4\+0x0+0004000
22 0+0000024 R_MIPS_GPREL16 \.sdata\+0x0+0004000
23 0+0000028 R_MIPS_GPREL16 \.sdata\+0x0+0004000
24 0+000002c R_MIPS_GPREL16 \.sdata\+0x0+0004000
27 Contents of section \.text:
28 0000 c783c000 c782c004 c783c008 c782c00c .*
29 0010 c783c010 c782c014 c782c000 c782c004 .*
30 0020 c782c008 8f82c000 8f82c004 8f82c008 .*