aix-neg-reloc.s 467 B

123456789101112131415161718192021222324252627282930
  1. .toc
  2. .csect .text[PR]
  3. .globl foo
  4. .globl .foo
  5. .csect foo[DS],3
  6. foo:
  7. .if size == 32
  8. .long .foo, TOC[tc0], 0
  9. .else
  10. .llong .foo, TOC[tc0], 0
  11. .endif
  12. .csect .text[PR]
  13. .foo:
  14. LFB..0:
  15. blr
  16. .csect _foo.ro_[RO],4
  17. .globl _GLOBAL__F_foo
  18. _GLOBAL__F_foo:
  19. .if size == 32
  20. .vbyte 4,LFB..0-$
  21. .else
  22. .vbyte 8,LFB..0-$
  23. .endif
  24. # Make sure that .ref is also enough to keep _GLOBAL__F_foo
  25. # when exporting foo.
  26. .csect .text[PR]
  27. .ref _GLOBAL__F_foo