Define various symbols conditionally in shared libraries
[binutils-gdb.git] / ld / testsuite / ld-x86-64 / bnd-ifunc-1-now.d
1 #source: bnd-ifunc-1.s
2 #as: --64 -madd-bnd-prefix
3 #ld: -z now -shared -melf_x86_64 -z bndplt --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code
4 #objdump: -dw
5
6 .*: +file format .*
7
8
9 Disassembly of section .plt:
10
11 0+170 <.plt>:
12 +[a-f0-9]+: ff 35 4a 01 20 00 pushq 0x20014a\(%rip\) # 2002c0 <_GLOBAL_OFFSET_TABLE_\+0x8>
13 +[a-f0-9]+: f2 ff 25 4b 01 20 00 bnd jmpq \*0x20014b\(%rip\) # 2002c8 <_GLOBAL_OFFSET_TABLE_\+0x10>
14 +[a-f0-9]+: 0f 1f 00 nopl \(%rax\)
15 +[a-f0-9]+: 68 00 00 00 00 pushq \$0x0
16 +[a-f0-9]+: f2 e9 e5 ff ff ff bnd jmpq 170 <.plt>
17 +[a-f0-9]+: 0f 1f 44 00 00 nopl 0x0\(%rax,%rax,1\)
18
19 Disassembly of section .plt.sec:
20
21 0+190 <\*ABS\*\+0x198@plt>:
22 +[a-f0-9]+: f2 ff 25 39 01 20 00 bnd jmpq \*0x200139\(%rip\) # 2002d0 <_GLOBAL_OFFSET_TABLE_\+0x18>
23 +[a-f0-9]+: 90 nop
24
25 Disassembly of section .text:
26
27 0+198 <foo>:
28 +[a-f0-9]+: f2 c3 bnd retq
29
30 0+19a <bar>:
31 +[a-f0-9]+: f2 e8 f0 ff ff ff bnd callq 190 <\*ABS\*\+0x198@plt>
32 +[a-f0-9]+: f2 c3 bnd retq
33 #pass