1
0

crt_arch.h 343 B

123456789101112131415161718
  1. __asm__(
  2. ".text \n"
  3. ".global " START " \n"
  4. ".align 4 \n"
  5. START ": \n"
  6. " l.jal 1f \n"
  7. " l.ori r3, r1, 0 \n"
  8. ".weak _DYNAMIC \n"
  9. ".hidden _DYNAMIC \n"
  10. " .word _DYNAMIC-. \n"
  11. "1: l.lwz r4, 0(r9) \n"
  12. " l.add r4, r4, r9 \n"
  13. " l.addi r2, r0, -8 \n"
  14. " l.and r1, r1, r2 \n"
  15. " l.addi r1, r1, -16 \n"
  16. " l.jal " START "_c \n"
  17. " l.ori r2, r0, 0 \n"
  18. );