]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-aarch64/emit-morello-reloc-markers-2.d
Make various linker tests more robust
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / emit-morello-reloc-markers-2.d
CommitLineData
d6cf562a
MM
1# The aim here is to test that
2# a) We generate the __rela_dyn_{start,end} symbols.
3# b) They span the entire .rela.dyn section.
4# This particular case (the -2 file) is in case of there both .got symbols and
5# local symbols that require relocations.
6#source: emit-morello-reloc-markers-2.s
7#as: -march=morello+c64
8#ld: -Ttext-segment 0x0 -static
9#objdump: --syms --section-headers --section=.rela.dyn --section=.got
10
11.*: file format .*
12
13Sections:
14Idx Name Size VMA LMA File off Algn
20b65d42
MM
15#record: RELADYN_START
16 0 \.rela\.dyn 00000030 ([0-9a-f]+) .* .* .*
d6cf562a
MM
17 CONTENTS, ALLOC, LOAD, READONLY, DATA
18 .* \.got .*
19.*
20
20b65d42
MM
21#check: STARTPOS string tolower $RELADYN_START
22#check: ENDPOS format %016x [expr "0x$RELADYN_START + 0x30"]
d6cf562a 23SYMBOL TABLE:
20b65d42 24STARTPOS l d \.rela\.dyn 0000000000000000 \.rela\.dyn
d6cf562a 25.*
20b65d42
MM
26ENDPOS l O \.rela\.dyn 0000000000000000 __rela_dyn_end
27STARTPOS l O \.rela\.dyn 0000000000000000 __rela_dyn_start
d6cf562a 28#pass