ld: Add -Bsymbolic-functions tests
[binutils-gdb.git] / ld / testsuite / ld-x86-64 / pr23854.s
1 .data
2 .type bar, @object
3 bar:
4 .byte 1
5 .size bar, .-bar
6 .globl foo
7 .type foo, @object
8 foo:
9 .byte 1
10 .size foo, .-foo
11 .text
12 .globl _start
13 .type _start, @function
14 _start:
15 adcw bar@GOTPCREL(%rip), %ax
16 addw bar@GOTPCREL(%rip), %bx
17 andw bar@GOTPCREL(%rip), %cx
18 cmpw bar@GOTPCREL(%rip), %dx
19 orw bar@GOTPCREL(%rip), %di
20 sbbw bar@GOTPCREL(%rip), %si
21 subw bar@GOTPCREL(%rip), %bp
22 xorw bar@GOTPCREL(%rip), %r8w
23 testw %cx, bar@GOTPCREL(%rip)
24 adcw foo@GOTPCREL(%rip), %ax
25 addw foo@GOTPCREL(%rip), %bx
26 andw foo@GOTPCREL(%rip), %cx
27 cmpw foo@GOTPCREL(%rip), %dx
28 orw foo@GOTPCREL(%rip), %di
29 sbbw foo@GOTPCREL(%rip), %si
30 subw foo@GOTPCREL(%rip), %bp
31 xorw foo@GOTPCREL(%rip), %r8w
32 testw %cx, foo@GOTPCREL(%rip)
33 .size _start, .-_start