README 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. Overview
  2. ---------------------------------------------------------------------------
  3. This is the README file for the i960 support in uClibc.
  4. This has been tested with gcc 2.95.3 and i960-intel-coff target.
  5. There is no support at all to compile with the intel CTOOLS, as this would
  6. have required too many changes to uClibc. So you won't see any support
  7. in the asm files for position independent data or code.
  8. Quirks needed
  9. ---------------------------------------------------------------------------
  10. prepended underscore
  11. --------------------
  12. As the i960 compiler prepends an underscore to symbols, it is critical that
  13. the Config file define __C_SYMBOL_PREFIX__ as
  14. __C_SYMBOL_PREFIX__ = _
  15. to make sure that underscores are applied to symbol names when needed.
  16. __va_copy in va-i960.h
  17. ----------------------
  18. When compiled with gcc-2.95, the __va_copy macro in va-i960.h seems to be broken
  19. and it has to be modified in order for uClibc to compile correctly.
  20. Change:
  21. #define __va_copy(dest, src) (dest) = (src)
  22. To:
  23. #define __va_copy(dest, src) dest[0] = src[0]; dest[1] = src[1]
  24. gcc integration
  25. ---------------------------------------------------------------------------
  26. I've preferred modifying the specs file so that the i960-intel-coff compiler
  27. directly compiles with uClibc.
  28. First, compile and install the standard i960-intel-coff compiler, which is meant
  29. to be used with newlib.
  30. Then, compile uClibc, installing over the newlib include files and libraries.
  31. Update the specs file with the included specs.uclinux.gcc-2.95.i960-intel-coff
  32. This specs file always build relocatable objects, which has the disadvantage
  33. of not letting you know if the link is missing any symbols.
  34. coff2flt
  35. ---------------------------------------------------------------------------
  36. In order to run the executables under uClinux, fully relocatable binaries
  37. need to be built using coff2flt.
  38. We have built a working coff2flt that works with the i960 and the current version
  39. of binfmt_flat with uClinux.
  40. Contact Martin Proulx <mproulx at okiok.com> for further informations.
  41. Check:
  42. _mmap.S: besoin???