x86-64: Check ELF_COMMON_DEF_P for common symbols
[deliverable/binutils-gdb.git] / ld / testsuite / ld-x86-64 / pr22064a.S
1 .section .rodata.str1.1,"aMS",@progbits,1
2 .LC0:
3 .string "PASS"
4 .text
5 .globl main
6 .type main, @function
7 main:
8 movq foo@GOTPCREL(%rip), %rax
9 cmpl $0, (%rax)
10 jne .L4
11 subq $8, %rsp
12 call foo_p@PLT
13 cmpq foo@GOTPCREL(%rip), %rax
14 jne .L2
15 movq bar@GOTPCREL(%rip), %rax
16 cmpl $-1, (%rax)
17 jne .L2
18 call bar_p@PLT
19 cmpq bar@GOTPCREL(%rip), %rax
20 jne .L2
21 leaq .LC0(%rip), %rdi
22 call puts@PLT
23 .L2:
24 movl $0, %eax
25 addq $8, %rsp
26 ret
27 .L4:
28 movl $0, %eax
29 ret
30 .size main, .-main
31 .comm bar,8,4
32 .comm foo,4,4
33 .section .note.GNU-stack,"",@progbits
This page took 0.03474 seconds and 4 git commands to generate.