1234285Sdim .text 2234285Sdim .globl main 3234285Sdim .type main, @function 4234285Sdimmain: 5234285Sdim subl $12, %esp 6234285Sdim call *foo@GOT 7234285Sdim call *bar@GOT 8234285Sdim call *plt@GOT 9234285Sdim movl foo@GOT, %eax 10234285Sdim call *%eax 11234285Sdim movl bar@GOT, %eax 12234285Sdim call *%eax 13234285Sdim movl plt@GOT, %eax 14234285Sdim call *%eax 15249423Sdim call __x86.get_pc_thunk.cx 16249423Sdim addl $_GLOBAL_OFFSET_TABLE_, %ecx 17249423Sdim movl foo@GOT(%ecx), %ecx 18249423Sdim call *%ecx 19234285Sdim subl $12, %esp 20234285Sdim pushl $0 21243830Sdim pushl $0 # Push a dummy return address onto stack. 22249423Sdim jmp *myexit@GOT 23234285Sdim .size main, .-main 24234285Sdim .section .text.__x86.get_pc_thunk.cx,"axG",@progbits,__x86.get_pc_thunk.cx,comdat 25234285Sdim .globl __x86.get_pc_thunk.cx 26249423Sdim .hidden __x86.get_pc_thunk.cx 27249423Sdim .type __x86.get_pc_thunk.cx, @function 28234285Sdim__x86.get_pc_thunk.cx: 29234285Sdim movl (%esp), %ecx 30276479Sdim ret 31276479Sdim