ld: Add -static-pie tests
[external/binutils.git] / ld / testsuite / ld-x86-64 / pr20253-1f.d
1 #source: pr20253-1.s
2 #as: --64
3 #ld: -shared -melf_x86_64 --hash-style=sysv -z max-page-size=0x200000 -z noseparate-code
4 #objdump: -dw
5 #notarget: x86_64-*-nacl*
6
7 .*: +file format .*
8
9
10 Disassembly of section .text:
11
12 0+188 <foo>:
13  +[a-f0-9]+:    c3                      retq   
14
15 0+189 <bar>:
16  +[a-f0-9]+:    c3                      retq   
17
18 0+18a <_start>:
19  +[a-f0-9]+:    ff 15 08 01 20 00       callq  \*0x200108\(%rip\)        # 200298 <.*>
20  +[a-f0-9]+:    ff 25 0a 01 20 00       jmpq   \*0x20010a\(%rip\)        # 2002a0 <.*>
21  +[a-f0-9]+:    48 c7 05 ff 00 20 00 00 00 00 00        movq   \$0x0,0x2000ff\(%rip\)        # 2002a0 <.*>
22  +[a-f0-9]+:    48 83 3d ef 00 20 00 00         cmpq   \$0x0,0x2000ef\(%rip\)        # 200298 <.*>
23  +[a-f0-9]+:    48 3b 0d e8 00 20 00    cmp    0x2000e8\(%rip\),%rcx        # 200298 <.*>
24  +[a-f0-9]+:    48 3b 0d e9 00 20 00    cmp    0x2000e9\(%rip\),%rcx        # 2002a0 <.*>
25 #pass