1
0

crt_arch.h 254 B

1234567891011121314
  1. __asm__(
  2. ".text\n"
  3. ".weak _DYNAMIC \n"
  4. ".hidden _DYNAMIC \n"
  5. ".global " START "\n"
  6. START ":\n"
  7. " suba.l %fp,%fp \n"
  8. " movea.l %sp,%a0 \n"
  9. " lea _DYNAMIC-.-8,%a1 \n"
  10. " pea (%pc,%a1) \n"
  11. " pea (%a0) \n"
  12. " lea " START "_c-.-8,%a1 \n"
  13. " jsr (%pc,%a1) \n"
  14. );