]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-aarch64/morello-stubs.d
Add linker tests for TLS changes
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / morello-stubs.d
CommitLineData
50e192f0 1#source: morello-stubs.s
a7442448 2#target: [check_shared_lib_support]
50e192f0
SP
3#as:
4#ld: -shared -T morello-stubs.ld
5#objdump: -DR -j .text_low -j .text_high -j .got.plt -j .plt
6
7.*: file format .*
8
9
10Disassembly of section .text_low:
11
12.* <foo>:
13.*: 94000008 bl [0-9a-f]+ <__baz_veneer>
14.*: c2c1d041 mov c1, c2
15.*: d65f03c0 ret
16
17.* <baz2>:
18.*: 14000005 b [0-9a-f]+ <__baz_veneer>
19.*: c2c253c0 ret c30
20.*: 00000000 .*
21.*: 14000008 b [0-9a-f]+ <__baz_veneer\+0x18>
22.*: d503201f nop
23
24.* <__baz_veneer>:
bc64cc90 25.*: 900..... adrp x16, [0-9a-f]+ <baz3>
50e192f0
SP
26.*: 910...10 add x16, x16, #0x[0-9a-f]+
27.*: d61f0200 br x16
28 ...
29
30Disassembly of section .text_high:
31
32.* <baz3>:
33.*: 1400000a b [0-9a-f]+ <___veneer>
34.*: d65f03c0 ret
35
36.* <baz>:
37.*: 14000004 b [0-9a-f]+ <__foo_c64a64_veneer>
38.*: c2c253c0 ret c30
39.*: 1400000c b [0-9a-f]+ <.plt>
40.*: d503201f nop
41
42.* <__foo_c64a64_veneer>:
bc64cc90 43.*: 90f..... adrp c16, [0-9a-f]+ <.*>
50e192f0
SP
44.*: 020...10 add c16, c16, #0x[0-9a-f]+
45.*: c2c21200 br c16
46.*: 00000000 .*
47
48.* <___veneer>:
bc64cc90 49.*: 90f..... adrp x16, .* <.*>
50e192f0
SP
50.*: 910...10 add x16, x16, #0x[0-9a-f]+
51.*: d61f0200 br x16
52 ...
53
54Disassembly of section .plt:
55
56.* <.plt>:
57.*: 62bf7bf0 stp c16, c30, \[csp, #-32\]!
58.*: 90800010 adrp c16, [0-9a-f]+ <baz3>
59.*: c24...11 ldr c17, \[c16, #[0-9]+\]
60.*: 020...10 add c16, c16, #0x[0-9a-f]+
61.*: c2c21220 br c17
62.*: d503201f nop
63.*: d503201f nop
64.*: d503201f nop
65.*: 90800010 adrp c16, [0-9a-f]+ <baz3>
66.*: c24...11 ldr c17, \[c16, #[0-9]+\]
67.*: 020...10 add c16, c16, #0x[0-9a-f]+
68.*: c2c21220 br c17
69
70Disassembly of section .got.plt:
71
72.* <.got.plt>:
73 ...
74.*: 0f000041 .*
75 .*: R_MORELLO_JUMP_SLOT baz
76 ...