]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-aarch64/emit-relocs-morello-6.d
ld: Adjust bounds, base, and size for various symbols
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / emit-relocs-morello-6.d
1 # Check handling relocations into the got that require a GOT entry.
2 # This case handles PIE binaries.
3 #
4 # This testcase uses exact values in order to check that of the two GOT entries
5 # created, the one that is referenced by the first instruction in _start is
6 # the one which has the LSB set in its value.
7 #
8 # Have tried to mitigate the flakyness of the test with a linker script that
9 # aligns .text and the GOT to 12 bits so that the ldr addends are just offsets
10 # into the GOT and we are likely to get .text at 0x1000.
11 #source: emit-relocs-morello-6.s
12 #as: -march=morello+c64
13 #ld: -Ttext-segment 0x100000 -T emit-relocs-morello-7.ld -pie -static
14 #objdump: -DR -j .got -j .text -j .data
15
16
17 .*: file format .*
18
19
20 Disassembly of section \.text:
21
22 0000000000100100 <_start>:
23 100100: c2400c00 ldr c0, \[c0, #48\]
24 100104: c2400800 ldr c0, \[c0, #32\]
25 100108: c2401000 ldr c0, \[c0, #64\]
26 10010c: c2400400 ldr c0, \[c0, #16\]
27
28 Disassembly of section \.data:
29
30 00000000001001e8 <data_obj>:
31 1001e8: 0000000a .*
32
33 00000000001001ec <data_func>:
34 1001ec: 0000000a .*
35
36 Disassembly of section \.got:
37
38 0000000000101000 <\.got>:
39 101000: 00100000 .*
40 \.\.\.
41 101010: 001001ed .*
42 101010: R_MORELLO_RELATIVE \*ABS\*
43 101014: 00000000 .*
44 101018: 00000402 .*
45 10101c: 00000000 .*
46 101020: 00100100 .*
47 101020: R_MORELLO_RELATIVE \*ABS\*
48 101024: 00000000 .*
49 101028: 000f5001 .*
50 10102c: 00000000 .*
51 101030: 00100100 .*
52 101030: R_MORELLO_RELATIVE \*ABS\*\+0x1
53 101034: 00000000 .*
54 101038: 000f5001 .*
55 10103c: 00000000 .*
56 101040: 001001e8 .*
57 101040: R_MORELLO_RELATIVE \*ABS\*
58 101044: 00000000 .*
59 101048: 00000402 .*
60 10104c: 00000000 .*