3 #source: gc-plt-hidden.s
5 #ld: --gc-sections -T aarch64.ld --shared --hash-style=sysv
8 # Shared object with plt related relocs against global symbol
9 # and local functions gced. After gc-section removal we are
10 # checking that the function does not exist.
12 .*: file format elf64-(little|big)aarch64
15 0+8000 g DF \.text 0+4 _start
16 0+0000 D \*UND\* 0+ foo
17 0+8008 g DF \.text 0+ bar
19 Disassembly of section .text:
22 8000: 9400000c bl 8030 \<.*>
25 8004: 8a000000 and x0, x0, x0
28 8008: 14000001 b 800c \<foo\>
31 800c: 97fffffe bl 8004 \<hidfn\>
33 Disassembly of section .plt:
36 8010: a9bf7bf0 stp x16, x30, \[sp, #-16\]!
37 8014: b0000010 adrp x16, 9000 .*
38 8018: f9400e11 ldr x17, \[x16, #24\]
39 801c: 91006210 add x16, x16, #0x18
44 8030: b0000010 adrp x16, 9000 .*
45 8034: f9401211 ldr x17, \[x16, #32\]
46 8038: 91008210 add x16, x16, #0x20