1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
.text .p2align 4,,15 .globl get_func .type get_func, @function get_func: movq func@GOTPCREL(%rip), %rax ret .size get_func, .-get_func .p2align 4,,15 .globl call_func .type call_func, @function call_func: jmp *func@GOTPCREL(%rip) .size call_func, .-call_func .section .note.GNU-stack,"",@progbits