| 1 | #objdump: -sr -j .text |
| 2 | #name: MIPS ELF reloc |
| 3 | #source: elf-rel.s |
| 4 | #as: -32 |
| 5 | |
| 6 | # Test the HI16/LO16 generation. |
| 7 | |
| 8 | .*: file format elf.*mips |
| 9 | |
| 10 | RELOCATION RECORDS FOR \[\.text\]: |
| 11 | OFFSET [ ]+ TYPE VALUE |
| 12 | 0+0000000 R_MIPS_HI16 \.text |
| 13 | 0+0000018 R_MIPS_LO16 \.text |
| 14 | 0+000000c R_MIPS_HI16 \.text |
| 15 | 0+000001c R_MIPS_LO16 \.text |
| 16 | 0+0000008 R_MIPS_HI16 \.text |
| 17 | 0+0000020 R_MIPS_LO16 \.text |
| 18 | 0+0000004 R_MIPS_HI16 \.text |
| 19 | 0+0000024 R_MIPS_LO16 \.text |
| 20 | 0+0000014 R_MIPS_HI16 \.text |
| 21 | 0+0000028 R_MIPS_LO16 \.text |
| 22 | 0+0000010 R_MIPS_HI16 \.text |
| 23 | 0+000002c R_MIPS_LO16 \.text |
| 24 | 0+0000030 R_MIPS_HI16 \.text |
| 25 | 0+0000048 R_MIPS_LO16 \.text |
| 26 | 0+0000034 R_MIPS_HI16 \.text |
| 27 | 0+000004c R_MIPS_LO16 \.text |
| 28 | 0+0000038 R_MIPS_HI16 \.text |
| 29 | 0+0000050 R_MIPS_LO16 \.text |
| 30 | 0+000003c R_MIPS_HI16 \.text |
| 31 | 0+0000054 R_MIPS_LO16 \.text |
| 32 | 0+0000044 R_MIPS_HI16 \.text |
| 33 | 0+0000058 R_MIPS_LO16 \.text |
| 34 | 0+0000040 R_MIPS_HI16 \.text |
| 35 | 0+000005c R_MIPS_LO16 \.text |
| 36 | 0+0000060 R_MIPS_HI16 \.text |
| 37 | 0+0000078 R_MIPS_LO16 \.text |
| 38 | 0+0000064 R_MIPS_HI16 \.text |
| 39 | 0+000007c R_MIPS_LO16 \.text |
| 40 | 0+0000068 R_MIPS_HI16 \.text |
| 41 | 0+0000080 R_MIPS_LO16 \.text |
| 42 | 0+000006c R_MIPS_HI16 \.text |
| 43 | 0+0000084 R_MIPS_LO16 \.text |
| 44 | 0+0000074 R_MIPS_HI16 \.text |
| 45 | 0+0000088 R_MIPS_LO16 \.text |
| 46 | 0+0000070 R_MIPS_HI16 \.text |
| 47 | 0+000008c R_MIPS_LO16 \.text |
| 48 | |
| 49 | |
| 50 | Contents of section \.text: |
| 51 | 0000 0000013c 0000013c 0100013c 0100013c .* |
| 52 | 0010 0000013c 0100013c 18002120 1c002120 .* |
| 53 | 0020 18002120 1c002120 18802120 fcff2120 .* |
| 54 | 0030 0100013c 0100013c 0200013c 0200013c .* |
| 55 | 0040 0100013c 0100013c febf2120 02c02120 .* |
| 56 | 0050 febf2120 02c02120 fe3f2120 fabf2120 .* |
| 57 | 0060 0100013c 0100013c 0200013c 0200013c .* |
| 58 | 0070 0100013c 0100013c febf2120 02c02120 .* |
| 59 | 0080 febf2120 02c02120 fe3f2120 fabf2120 .* |
| 60 | #pass |