]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-aarch64/emit-relocs-morello-2.d
Add linker tests for TLS changes
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / emit-relocs-morello-2.d
1 #source: emit-relocs-morello-2.s
2 #target: [check_shared_lib_support]
3 #as: -march=morello+c64 --defsym C64MODE=1
4 #ld: -shared
5 #objdump: -DR -j .text -j .data -j .got
6
7 .*: file format .*
8
9
10 Disassembly of section .text:
11
12 .* <_start>:
13 .*: 90800082 adrp c2, [0-9a-f]+ <.*>
14 .*: c24...42 ldr c2, \[c2, #[0-9]+\]
15 .*: 826...42 ldr c2, \[x2, #[0-9]+\]
16 .*: 826...42 ldr x2, \[x2, #[0-9]+\]
17
18 Disassembly of section .got:
19
20 .* <.got>:
21 .*: [0-9a-f]+ .*
22 ...
23 .*: R_MORELLO_GLOB_DAT cap
24
25 Disassembly of section .data:
26
27 #record: STRPOS
28 (0000000000010360|0000000000010380) <str>:
29 .*: 6c6c6548 .*
30 .*: 6874206f .*
31 .*: 20657265 .*
32 .*: 20676962 .*
33 .*: 20646162 .*
34 .*: 6c726f77 .*
35 .*: .*
36 .*: R_AARCH64_RELATIVE \*ABS\*\+.*
37
38 .* <ptr>:
39 #check: SHORTSTR string range $STRPOS end-7 end
40 .*: SHORTSTR .*
41 ...
42
43 .* <cap>:
44 .*: SHORTSTR .*
45 .*: R_MORELLO_RELATIVE \*ABS\*
46 .*: 00000000 .*
47 .*: 0000001b .*
48 .*: 02000000 .*