]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-aarch64/morello-sizeless-global-syms.d
Make various linker tests more robust
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / morello-sizeless-global-syms.d
1 #source: morello-sizeless-global-syms.s
2 #as: -march=morello+c64
3 #ld: -static -pie
4 #objdump: -DRz -j .data -j .bss
5
6 .*: file format elf64-littleaarch64
7
8
9 Disassembly of section \.data:
10
11 [0-9a-f]+ <ptr3>:
12 #record: BSS_START
13 [0-9a-f]+: ([0-9a-f]+) .*
14 [0-9a-f]+: R_MORELLO_RELATIVE \*ABS\*
15 [0-9a-f]+: 00000000.*
16 [0-9a-f]+: 00000000.*
17 [0-9a-f]+: 02000000.*
18
19 [0-9a-f]+ <ptr2>:
20 #check: BAR_POS format %08x [expr "0x$BSS_START + 0x4"]
21 [0-9a-f]+: BAR_POS .*
22 [0-9a-f]+: R_MORELLO_RELATIVE \*ABS\*
23 [0-9a-f]+: 00000000.*
24 [0-9a-f]+: 00000000.*
25 [0-9a-f]+: 02000000.*
26
27 [0-9a-f]+ <ptr1>:
28 #check: FOO_POS format %08x [expr "0x$BSS_START + 0x8"]
29 [0-9a-f]+: FOO_POS .*
30 [0-9a-f]+: R_MORELLO_RELATIVE \*ABS\*
31 [0-9a-f]+: 00000000.*
32 [0-9a-f]+: 00000000.*
33 [0-9a-f]+: 02000000.*
34
35 Disassembly of section \.bss:
36
37 #check: BAZL_POS format %016x 0x$BSS_START
38 #check: BARL_POS format %016x [expr "0x$BSS_START + 0x4"]
39 #check: FOOL_POS format %016x [expr "0x$BSS_START + 0x8"]
40 BAZL_POS <baz>:
41 [0-9a-f]+: 00000000.*
42
43 BARL_POS <bar>:
44 [0-9a-f]+: 00000000.*
45
46 FOOL_POS <foo>:
47 [0-9a-f]+: 00000000.*
48 [0-9a-f]+: 00000000.*