README 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  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'm personnaly not using the gcc-uClibc wrapper.
  27. I've preferred modifying the specs file so that the i960-intel-coff compiler
  28. directly compiles with uClibc.
  29. First, compile and install the standard i960-intel-coff compiler, which is meant
  30. to be used with newlib.
  31. Then, compile uClibc, installing over the newlib include files and libraries.
  32. Update the specs file with the included specs.uclinux.gcc-2.95.i960-intel-coff
  33. This specs file always build relocatable objects, which has the disadvantage
  34. of not letting you know if the link is missing any symbols.
  35. coff2flt
  36. ---------------------------------------------------------------------------
  37. In order to run the executables under uClinux, fully relocatable binaries
  38. need to be built using coff2flt.
  39. We have built a working coff2flt that works with the i960 and the current version
  40. of binfmt_flat with uClinux.
  41. Contact Martin Proulx <mproulx at okiok.com> for further informations.
  42. Check:
  43. _mmap.S: besoin???