protected3.s 210 B

12345678910111213141516
  1. .protected foo
  2. .globl foo
  3. .data
  4. .align 4
  5. .type foo, @object
  6. .size foo, 4
  7. foo:
  8. .long 1
  9. .text
  10. .globl bar
  11. .type bar, @function
  12. bar:
  13. movq foo@GOTPCREL(%rip), %rax
  14. movl (%rax), %eax
  15. ret
  16. .size bar, .-bar