1
0

crt_arch.h 335 B

1234567891011121314151617
  1. __asm__(
  2. ".text \n"
  3. ".global " START " \n"
  4. ".align 2 \n"
  5. START ": \n"
  6. " add r19, r0, r0 \n"
  7. " ori r5, r1, 0 \n"
  8. "1: mfs r6, rpc \n"
  9. ".weak _DYNAMIC \n"
  10. ".hidden _DYNAMIC \n"
  11. " addik r6, r6, _GLOBAL_OFFSET_TABLE_+8 \n"
  12. " addik r6, r6, _DYNAMIC@GOTOFF \n"
  13. " andi r1, r1, -8 \n"
  14. " addik r1, r1, -8 \n"
  15. " bri " START "_c \n"
  16. " nop \n"
  17. );