]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - ld/testsuite/ld-aarch64/c64-ifunc-2.d
Fix c64-ifunc-2 test
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-aarch64 / c64-ifunc-2.d
1 #target: [check_shared_lib_support]
2 #as: -march=morello+c64 --defsym C64MODE=1
3 #ld: -shared --hash-style=sysv
4 #objdump: -dw
5 #source: ifunc-2.s
6
7 #record: INDIRECT_LOC FOO_LOCATION
8 #...
9 0+([0-9a-f]{3}).*0x([0-9a-f]{3})@plt>:
10 #...
11 Disassembly of section \.text:
12
13 #check: FOO_LOC string tolower $FOO_LOCATION
14 #check: INDIRECT_POS format %x [expr "0x$INDIRECT_LOC + 1"]
15 0+FOO_LOC <foo>:
16 #...
17 [ \t0-9a-f]+:[ \t0-9a-f]+bl[ \t0-9a-f]+<\*ABS\*\+0xFOO_LOC@plt>
18 [ \t0-9a-f]+:[ \t0-9a-f]+adrp[ \t]+c0, 0 <.*>
19 [ \t0-9a-f]+:[ \t0-9a-f]+add[ \t]+c0, c0, #0xINDIRECT_POS
20 #pass