]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-aarch64/emit-relocs-morello-7.s
ld: Adjust bounds, base, and size for various symbols
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / emit-relocs-morello-7.s
1 # Want to test the special "compatibility hack" where we treat a linker script
2 # defined symbol with a name of the form __.*_start or __start_.* which is at
3 # the very end of a section as being at the *start* of the next section.
4 #
5 # This is required now that symbols have permissions and bounds according to
6 # their section.
7 # Checking LD128 relocations against a linker script defined symbol which
8 # should get this compatibility hack (and some linker script defined symbols
9 # that should not get the compatibility hack).
10 .arch morello+c64
11 .section othersection,"aw"
12 .asciz "Hello there ;-)"
13 .data
14 .word 10
15 .text
16
17 obj:
18
19 ldr c0, [c0, :got_lo12:__text_start]
20 ldr c0, [c0, :got_lo12:__text_other]
21 ldr c0, [c0, :got_lo12:__data_start]
22 ldr c0, [c0, :got_lo12:__data_other]