]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-aarch64/emit-relocs-morello-hidden.d
35334743999e87da412b9f292cf0332176c87688
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / emit-relocs-morello-hidden.d
1 #source: emit-relocs-morello-hidden.s
2 #target: [check_shared_lib_support]
3 #as: -march=morello+c64
4 #ld: -shared
5 #objdump: -DR -j .got -j .text
6
7 .*: file format .*
8
9
10 Disassembly of section \.text:
11
12 #record: HIDDEN_ADDR
13 #...
14 ([0-9a-f]*) <hidden_func>:
15 .*: 028043ff sub csp, csp, #0x10
16 .*: b9000fe0 str w0, \[csp, #12\]
17 .*: b9400fe0 ldr w0, \[csp, #12\]
18 .*: 020043ff add csp, csp, #0x10
19 .*: c2c253c0 ret c30
20
21 Disassembly of section \.got:
22
23 #...
24 \.\.\.
25 #record: RELOC_BASE
26 .*: ([0-9a-f]{8}) .*
27 #check: RELOC_ADDEND aarch64_required_func_addend $RELOC_BASE $HIDDEN_ADDR
28 .*: R_MORELLO_RELATIVE \*ABS\*\+0xRELOC_ADDEND
29 .*: 00000000 .*
30 # Check that the bounds are anything except zero (rely on other tests to ensure
31 # that the PCC bounds calculation is correct).
32 ! .*: 00000000 .*
33 .*: 04000000 .*
34