ifunc-5.s 354 B

1234567891011121314151617181920
  1. .text
  2. .type foo, %gnu_indirect_function
  3. .globl foo
  4. .type foo, @function
  5. foo:
  6. ret
  7. .size foo, .-foo
  8. .type start,"function"
  9. .global start
  10. start:
  11. .type _start,"function"
  12. .global _start
  13. _start:
  14. .type __start,"function"
  15. .global __start
  16. __start:
  17. .type __start,"function"
  18. bl foo
  19. adrp x0, :got:foo
  20. ldr x0, [x0, #:got_lo12:foo]