tocsave2.s 395 B

123456789101112131415161718192021222324
  1. .abiversion 2
  2. .global _start
  3. .type _start,@function
  4. _start:
  5. nop
  6. .L1:
  7. # Function prologue tocsave.
  8. .reloc .,R_PPC64_TOCSAVE,.L1
  9. nop
  10. nop
  11. # Call with tocsave on nop
  12. bl foo
  13. .reloc .,R_PPC64_TOCSAVE,.L1
  14. nop
  15. nop
  16. # A call without tocsave (maybe in a different function, or after alloca
  17. # dynamic stack allocation loses r2 save in same function).
  18. bl foo
  19. nop
  20. blr
  21. .size _start, .-_start