x86: Support Intel IBT with IBT property and IBT-enable PLT
[deliverable/binutils-gdb.git] / ld / testsuite / ld-i386 / ibt-plt-1.s
1 .text
2 .p2align 4,,15
3 .globl foo
4 .type foo, @function
5 foo:
6 .LFB0:
7 .cfi_startproc
8 pushl %ebx
9 .cfi_def_cfa_offset 8
10 .cfi_offset 3, -8
11 call __x86.get_pc_thunk.bx
12 addl $_GLOBAL_OFFSET_TABLE_, %ebx
13 subl $8, %esp
14 .cfi_def_cfa_offset 16
15 call bar2@PLT
16 call bar1@PLT
17 addl $8, %esp
18 .cfi_def_cfa_offset 8
19 popl %ebx
20 .cfi_restore 3
21 .cfi_def_cfa_offset 4
22 ret
23 .cfi_endproc
24 .LFE0:
25 .size foo, .-foo
26 .section .note.GNU-stack,"",@progbits
27
28 .section .text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat
29 .globl __x86.get_pc_thunk.bx
30 .hidden __x86.get_pc_thunk.bx
31 .type __x86.get_pc_thunk.bx, @function
32 __x86.get_pc_thunk.bx:
33 .LFB1:
34 .cfi_startproc
35 movl (%esp), %ebx
36 ret
37 .cfi_endproc
38 .LFE1:
39
40 .section ".note.gnu.property", "a"
41 .p2align 2
42 .long 1f - 0f /* name length */
43 .long 5f - 2f /* data length */
44 .long 5 /* note type */
45 0: .asciz "GNU" /* vendor name */
46 1:
47 .p2align 2
48 2: .long 0xc0000002 /* pr_type. */
49 .long 4f - 3f /* pr_datasz. */
50 3:
51 .long 0x1
52 4:
53 .p2align 2
54 5:
This page took 0.030537 seconds and 4 git commands to generate.