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