]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-aarch64/emit-relocs-morello-7.d
Fixing cap_meta
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / emit-relocs-morello-7.d
CommitLineData
5fa80905
AC
1# Checking that the "compatibility hack" around symbols named with _start is
2# working.
3#
4# Use known offsets into the GOT. Have ensured that the GOT is 12bit aligned
5# in the linker script, which means we know that the lo12 relocations should
6# all have a known value (assuming a constant order of entries into the GOT).
7#
8# Need this since a large point of this test is to demonstrate that different
9# symbols with the same address end up having different valued relocations, so
10# we want to ensure a direct link between the relevant relocations and their
11# GOT entries.
12#
13# Point here is that the __text_start and __data_other symbols should end up
14# pointing into the text section, which should mean that they have PCC bounds
15# and their value includes an addend. These are the symbols used in the first
16# and last LDR's in the function.
17#
18# Meanwhile, the __text_other symbol should have bounds of everything remaining
19# in the section *before* it (which is nothing), and the __data_start symbol
20# should have bounds spanning the entire section *after* it (which is the data
21# section).
22#
23#source: emit-relocs-morello-7.s
24#as: -march=morello+c64
25#ld: -static -pie -T emit-relocs-morello-7.ld
26#objdump: -DR -j .text -j .data -j .got
27
28.*: file format .*
29
30
31Disassembly of section \.text:
32
33.* <obj>:
34.*: c2400400 ldr c0, \[c0, #16\]
35.*: c2401000 ldr c0, \[c0, #64\]
36.*: c2400c00 ldr c0, \[c0, #48\]
37.*: c2400800 ldr c0, \[c0, #32\]
38
39Disassembly of section \.data:
40
41.* <\.data>:
42.*: 0000000a .*
43
44Disassembly of section \.got:
45
460000000000001000 <\.got>:
47 1000: 00000120 .*
48 \.\.\.
49 1010: 000001e8 .*
50 1010: R_MORELLO_RELATIVE \*ABS\*\+0x38
51 1014: 00000000 .*
b235f0e0
MM
52 1018: 00000e68 .*
53 101c: 04000000 .*
5fa80905
AC
54 1020: 000001e8 .*
55 1020: R_MORELLO_RELATIVE \*ABS\*\+0x48
56 1024: 00000000 .*
b235f0e0
MM
57 1028: 00000e68 .*
58 102c: 04000000 .*
5fa80905
AC
59 1030: 00000230 .*
60 1030: R_MORELLO_RELATIVE \*ABS\*
61 1034: 00000000 .*
b235f0e0
MM
62 1038: 0000000d .*
63 103c: 01000000 .*
5fa80905
AC
64 1040: 00000220 .*
65 1040: R_MORELLO_RELATIVE \*ABS\*
b235f0e0
MM
66 \.\.\.
67 104c: 02000000 .*
5fa80905 68