1
0

crt_arch.h 416 B

12345678910111213141516171819
  1. __asm__(
  2. ".text \n"
  3. ".global " START " \n"
  4. ".type " START ", %function \n"
  5. START ": \n"
  6. " addis 2, 12, .TOC.-" START "@ha \n"
  7. " addi 2, 2, .TOC.-" START "@l \n"
  8. " lwz 4, 1f-" START "(12)\n"
  9. " add 4, 4, 12 \n"
  10. " mr 3, 1 \n"
  11. " clrrdi 1, 1, 4 \n"
  12. " li 0, 0 \n"
  13. " stdu 0, -32(1) \n"
  14. " mtlr 0 \n"
  15. " bl " START "_c \n"
  16. ".weak _DYNAMIC \n"
  17. ".hidden _DYNAMIC \n"
  18. "1: .long _DYNAMIC-" START "\n"
  19. );