README 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. bits/uClibc_arch_features.h undefines __UCLIBC_NO_UNDERSCORES__
  14. to make sure that underscores are applied to symbol names when needed.
  15. __va_copy in va-i960.h
  16. ----------------------
  17. When compiled with gcc-2.95, the __va_copy macro in va-i960.h seems to be broken
  18. and it has to be modified in order for uClibc to compile correctly.
  19. Change:
  20. #define __va_copy(dest, src) (dest) = (src)
  21. To:
  22. #define __va_copy(dest, src) dest[0] = src[0]; dest[1] = src[1]
  23. gcc integration
  24. ---------------------------------------------------------------------------
  25. I've preferred modifying the specs file so that the i960-intel-coff compiler
  26. directly compiles with uClibc.
  27. First, compile and install the standard i960-intel-coff compiler, which is meant
  28. to be used with newlib.
  29. Then, compile uClibc, installing over the newlib include files and libraries.
  30. Update the specs file with the included specs.uclinux.gcc-2.95.i960-intel-coff
  31. This specs file always build relocatable objects, which has the disadvantage
  32. of not letting you know if the link is missing any symbols.
  33. coff2flt
  34. ---------------------------------------------------------------------------
  35. In order to run the executables under uClinux, fully relocatable binaries
  36. need to be built using coff2flt.
  37. We have built a working coff2flt that works with the i960 and the current version
  38. of binfmt_flat with uClinux.
  39. Contact Martin Proulx <mproulx at okiok.com> for further informations.
  40. Check:
  41. _mmap.S: besoin???