pr17689b.S 370 B

12345678910111213141516171819202122
  1. .text
  2. .globl main
  3. .type main, @function
  4. main:
  5. subq $8, %rsp
  6. movq bar_alias(%rip), %rdi
  7. call foo@PLT
  8. movq ptr(%rip), %rax
  9. movq (%rax), %rdi
  10. call foo@PLT
  11. xorl %eax, %eax
  12. addq $8, %rsp
  13. ret
  14. .size main, .-main
  15. .globl ptr
  16. .section .data.rel,"aw",@progbits
  17. .align 8
  18. .type ptr, @object
  19. .size ptr, 8
  20. ptr:
  21. .quad bar_alias
  22. .section .note.GNU-stack,"",@progbits