Commit | Line | Data |
---|---|---|
451875b4 L |
1 | .text |
2 | .globl main | |
3 | .type main, @function | |
4 | main: | |
5 | leal 4(%esp), %ecx | |
6 | andl $-16, %esp | |
7 | pushl -4(%ecx) | |
8 | pushl %ebp | |
9 | movl %esp, %ebp | |
10 | pushl %ebx | |
11 | pushl %ecx | |
12 | call __x86.get_pc_thunk.bx | |
13 | addl $_GLOBAL_OFFSET_TABLE_, %ebx | |
14 | subl $12, %esp | |
15 | movl bar@GOT(%ebx), %eax | |
16 | addl (%eax), %eax | |
17 | pushl %eax | |
18 | call foo@PLT | |
19 | addl $16, %esp | |
20 | leal -8(%ebp), %esp | |
21 | xorl %eax, %eax | |
22 | popl %ecx | |
23 | popl %ebx | |
24 | popl %ebp | |
25 | leal -4(%ecx), %esp | |
26 | ret | |
27 | .size main, .-main | |
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 | movl (%esp), %ebx | |
34 | ret | |
35 | ||
36 | .data | |
37 | .p2align 2 | |
38 | bar: | |
39 | .long test - . | |
40 | ||
41 | .section .note.GNU-stack,"",@progbits |