Commit | Line | Data |
---|---|---|
99ad26cb JW |
1 | #source: emit-relocs-313.s |
2 | #ld: -T relocs.ld --defsym globala=0x11000 --defsym globalb=0x45000 --defsym globalc=0x1234 -e0 --emit-relocs | |
3 | #objdump: -dr | |
4 | ||
5 | .*: +file format .* | |
6 | ||
7 | ||
8 | Disassembly of section .text: | |
9 | ||
10 | 0000000000010000 <\.text>: | |
11 | 10000: 90000082 adrp x2, 20000 <_GLOBAL_OFFSET_TABLE_> | |
12 | 10000: R_AARCH64_ADR_PREL_PG_HI21 _GLOBAL_OFFSET_TABLE_ | |
ad43e107 | 13 | 10004: f9400840 ldr x0, \[x2, #16\] |
99ad26cb | 14 | 10004: R_AARCH64_LD64_GOTPAGE_LO15 globala |
ad43e107 | 15 | 10008: f9400c40 ldr x0, \[x2, #24\] |
99ad26cb | 16 | 10008: R_AARCH64_LD64_GOTPAGE_LO15 globalb |
ad43e107 | 17 | 1000c: f9400440 ldr x0, \[x2, #8\] |
99ad26cb | 18 | 1000c: R_AARCH64_LD64_GOTPAGE_LO15 globalc |