]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - ld/testsuite/ld-x86-64/protected-func-1a.s
x86-64: Test protected function pointers
[thirdparty/binutils-gdb.git] / ld / testsuite / ld-x86-64 / protected-func-1a.s
CommitLineData
b6b42983
L
1 .text
2 .p2align 4
3 .protected protected_func_1a
4 .globl protected_func_1a
5 .type protected_func_1a, @function
6protected_func_1a:
7.LFB0:
8 .cfi_startproc
9 movl $1, %eax
10 ret
11 .cfi_endproc
12.LFE0:
13 .size protected_func_1a, .-protected_func_1a
14 .p2align 4
15 .protected protected_func_1b
16 .globl protected_func_1b
17 .type protected_func_1b, @function
18protected_func_1b:
19.LFB1:
20 .cfi_startproc
21 movl $2, %eax
22 ret
23 .cfi_endproc
24.LFE1:
25 .size protected_func_1b, .-protected_func_1b
26 .p2align 4
27 .globl protected_func_1a_p
28 .type protected_func_1a_p, @function
29protected_func_1a_p:
30.LFB2:
31 .cfi_startproc
32 movq protected_func_1a@GOTPCREL(%rip), %rax
33 ret
34 .cfi_endproc
35.LFE2:
36 .size protected_func_1a_p, .-protected_func_1a_p
37 .p2align 4
38 .globl protected_func_1b_p
39 .type protected_func_1b_p, @function
40protected_func_1b_p:
41.LFB3:
42 .cfi_startproc
43 movq protected_func_1b@GOTPCREL(%rip), %rax
44 ret
45 .cfi_endproc
46.LFE3:
47 .size protected_func_1b_p, .-protected_func_1b_p
48 .section .note.GNU-stack,"",@progbits