1
0

crt_arch.h 324 B

123456789101112131415161718
  1. __asm__(
  2. ".text \n"
  3. ".global " START " \n"
  4. ".type " START ",%function \n"
  5. START ": \n"
  6. " mov fp, #0 \n"
  7. " mov lr, #0 \n"
  8. " ldr a2, 1f \n"
  9. " add a2, pc, a2 \n"
  10. " mov a1, sp \n"
  11. "2: and ip, a1, #-16 \n"
  12. " mov sp, ip \n"
  13. " bl " START "_c \n"
  14. ".weak _DYNAMIC \n"
  15. ".hidden _DYNAMIC \n"
  16. ".align 2 \n"
  17. "1: .word _DYNAMIC-2b \n"
  18. );