aarch64 and arm testsuite fixes for targets lacking shared libs
[deliverable/binutils-gdb.git] / ld / testsuite / ld-aarch64 / gc-plt-relocs.d
CommitLineData
edb2fa9a
MS
1#source: gc-plt1.s
2#source: gc-plt-main.s
3#source: gc-plt-hidden.s
4#source: gc-plt2.s
3c3358ca 5#target: [check_shared_lib_support]
bab55c05 6#ld: --gc-sections -T aarch64.ld --shared --hash-style=sysv
edb2fa9a
MS
7#objdump: -dT
8
9# Shared object with plt related relocs against global symbol
10# and local functions gced. After gc-section removal we are
11# checking that the function does not exist.
12
13.*: file format elf64-(little|big)aarch64
14
15DYNAMIC SYMBOL TABLE:
edb2fa9a
MS
160+8000 g DF \.text 0+4 _start
170+0000 D \*UND\* 0+ foo
180+8008 g DF \.text 0+ bar
19
20Disassembly of section .text:
21
220+8000 \<_start\>:
a24bb4f0 23 8000: 9400000c bl 8030 \<.*>
edb2fa9a
MS
24
250+8004 \<hidfn\>:
26 8004: 8a000000 and x0, x0, x0
27
280+8008 \<bar\>:
29 8008: 14000001 b 800c \<foo\>
30
310+800c \<foo\>:
32 800c: 97fffffe bl 8004 \<hidfn\>
33
34Disassembly of section .plt:
35
360+8010 \<\.plt\>:
ad43e107 37 8010: a9bf7bf0 stp x16, x30, \[sp, #-16\]!
edb2fa9a 38 8014: b0000010 adrp x16, 9000 .*
ad43e107 39 8018: f9400e11 ldr x17, \[x16, #24\]
cc0efaa8 40 801c: 91006210 add x16, x16, #0x18
edb2fa9a
MS
41 8020: d61f0220 br x17
42 8024: d503201f nop
43 8028: d503201f nop
44 802c: d503201f nop
45 8030: b0000010 adrp x16, 9000 .*
ad43e107 46 8034: f9401211 ldr x17, \[x16, #32\]
cc0efaa8 47 8038: 91008210 add x16, x16, #0x20
edb2fa9a 48 803c: d61f0220 br x17
This page took 0.307655 seconds and 4 git commands to generate.