1 .text 2 .type implementation1, @function 3implementation1: 4 movl $1, %eax 5 ret 6 .size implementation1, .-implementation1 7 .type implementation2, @function 8implementation2: 9 movl $2, %eax 10 ret 11 .size implementation2, .-implementation2 12 .type resolver2, @function 13resolver2: 14 call __x86.get_pc_thunk.ax 15 addl $_GLOBAL_OFFSET_TABLE_, %eax 16 leal implementation2@GOTOFF(%eax), %eax 17 ret 18 .size resolver2, .-resolver2 19 .type func2, @gnu_indirect_function 20 .set func2,resolver2 21 .type resolver1, @function 22resolver1: 23 call __x86.get_pc_thunk.ax 24 addl $_GLOBAL_OFFSET_TABLE_, %eax 25 leal implementation1@GOTOFF(%eax), %eax 26 ret 27 .size resolver1, .-resolver1 28 .globl func1 29 .type func1, @gnu_indirect_function 30 .set func1,resolver1 31 .globl get_func2 32 .type get_func2, @function 33get_func2: 34 call __x86.get_pc_thunk.ax 35 addl $_GLOBAL_OFFSET_TABLE_, %eax 36 movl func2@GOT(%eax), %eax 37 ret 38 .size get_func2, .-get_func2 39 .globl call_func2 40 .type call_func2, @function 41call_func2: 42 pushl %ebx 43 call __x86.get_pc_thunk.bx 44 addl $_GLOBAL_OFFSET_TABLE_, %ebx 45 subl $8, %esp 46 call *get_func2@GOT(%ebx) 47 cmpl func2@GOT(%ebx), %eax 48 jne .L10 49 addl $8, %esp 50 movl %ebx, %eax 51 popl %ebx 52 jmp *func2@GOT(%eax) 53.L10: 54 call *abort@GOT(%ebx) 55 .size call_func2, .-call_func2 56 .globl func2_p 57#ifdef CHECK_PLT 58 .section .rodata,"a",@progbits 59#else 60 .section .data.rel,"aw",@progbits 61#endif 62 .align 4 63 .type func2_p, @object 64 .size func2_p, 4 65func2_p: 66 .long func2 67 .section .text.__x86.get_pc_thunk.ax,"axG",@progbits,__x86.get_pc_thunk.ax,comdat 68 .globl __x86.get_pc_thunk.ax 69 .hidden __x86.get_pc_thunk.ax 70 .type __x86.get_pc_thunk.ax, @function 71__x86.get_pc_thunk.ax: 72 movl (%esp), %eax 73 ret 74 .section .text.__x86.get_pc_thunk.bx,"axG",@progbits,__x86.get_pc_thunk.bx,comdat 75 .globl __x86.get_pc_thunk.bx 76 .hidden __x86.get_pc_thunk.bx 77 .type __x86.get_pc_thunk.bx, @function 78__x86.get_pc_thunk.bx: 79 movl (%esp), %ebx 80 ret 81 .section .note.GNU-stack,"",@progbits 82