lddstub.S 645 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. .text
  2. .globl main
  3. .globl exit
  4. main:
  5. exit:
  6. #if defined(__i386__)
  7. movl $1,%eax
  8. movl $0,%ebx
  9. int $0x80
  10. #elif defined(__mc68000__)
  11. movel #1,%d0
  12. clrl %d1
  13. trap #0
  14. #elif defined(__sparc__)
  15. mov 1,%g1
  16. mov 0,%o0
  17. t 0x10
  18. #else
  19. #error Only know how to support i386, m68k and sparc architectures
  20. #endif
  21. .globl atexit
  22. .globl __libc_init
  23. .globl __setfpucw
  24. atexit:
  25. __libc_init:
  26. __setfpucw:
  27. #if defined(__i386__)
  28. ret
  29. #elif defined(__mc68000__)
  30. rts
  31. #elif defined(__sparc__)
  32. ret
  33. nop
  34. #else
  35. #error Only know how to support i386, m68k and sparc architectures
  36. #endif
  37. .data
  38. .globl __fpu_control
  39. __fpu_control:
  40. .long 0