]>
Commit | Line | Data |
---|---|---|
20b65d42 MM |
1 | # Checking that the LSB is set on all relocations to a function symbol where |
2 | # the relocations are there to load an address into a register (rather than | |
3 | # jump to a relative address). | |
7470bce3 MM |
4 | #source: emit-relocs-morello-9.s |
5 | #as: -march=morello+c64 | |
6 | #ld: -static -Ttext-segment 0x0 | |
7 | #objdump: -d -j .data -j .text | |
8 | ||
9 | .*: file format .* | |
10 | ||
11 | ||
12 | Disassembly of section \.text: | |
13 | ||
20b65d42 MM |
14 | #record: TEXT_START |
15 | ([0-9a-f]+) <_start>: | |
16 | #check: LOBITS format %x [expr "0x$TEXT_START + 1"] | |
17 | .*: ........ movk x0, #0xLOBITS | |
18 | .*: ........ movk x0, #0xLOBITS | |
19 | .*: ........ adr c0, LOBITS <_start\+0x1> | |
20 | .*: ........ adr c0, LOBITS <_start\+0x1> | |
21 | .*: ........ add c0, c0, #0xLOBITS | |
22 | .*: ........ add c0, c0, #0xLOBITS | |
23 | .*: ........ mov x0, #0xLOBITS .* | |
24 | .*: ........ mov x0, #0xLOBITS .* | |
25 | .*: ........ movk x0, #0xLOBITS | |
26 | .*: ........ movk x0, #0xLOBITS | |
7470bce3 MM |
27 | |
28 | Disassembly of section \.data: | |
29 | ||
20b65d42 | 30 | #check: LO8BITS aarch64_8digit_addr $TEXT_START 1 |
7470bce3 | 31 | .* <val>: |
20b65d42 MM |
32 | .*: LO8BITS .word 0xLO8BITS |
33 | .*: LO8BITS .word 0xLO8BITS | |
34 | .*: LO8BITS .word 0xLO8BITS | |
7470bce3 | 35 | .*: 00000000 .word 0x00000000 |
20b65d42 MM |
36 | .*: LO8BITS .word 0xLO8BITS |
37 | .*: LO8BITS .word 0xLO8BITS | |
38 | .*: LO8BITS .word 0xLO8BITS | |
7470bce3 | 39 | .*: 00000000 .word 0x00000000 |