home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #23 / NN_1992_23.iso / spool / gnu / gcc / help / 2336 < prev    next >
Encoding:
Text File  |  1992-10-16  |  1.6 KB  |  38 lines

  1. Newsgroups: gnu.gcc.help
  2. Path: sparky!uunet!ferkel.ucsb.edu!taco!gatech!rpi!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!ames!elroy.jpl.nasa.gov!decwrl!pa.dec.com!engage.pko.dec.com!irenaeus.mlo.dec.com!eje
  3. From: eje@irenaeus.mlo.dec.com (Eric James Ewanco)
  4. Subject: big-endian loader for little-endian machine
  5. Message-ID: <1992Oct14.184802.19669@engage.pko.dec.com>
  6. Sender: newsdaemon@engage.pko.dec.com (USENET News Daemon)
  7. Reply-To: ewanco@kalvin.enet.dec.com
  8. Organization: Digital Equipment Corporation
  9. Date: Wed, 14 Oct 1992 18:48:02 GMT
  10. Lines: 26
  11.  
  12.  
  13. I am trying to use GNU to produce executable files for an embedded system
  14. (which reads a.out files).  The host is a little-endian MIPS (DS3100).  The
  15. target is 68030.
  16.  
  17. Unfortunately I discovered that GNU ld appears to be fixed in endian; it 
  18. assumes that it will run on the same endian machine as the target.  Is there
  19. a version of GNU ld that has configurable endian?  The .o files produced by
  20. gas are big-endian in format, and ld gets confused because it assumes the
  21. endian of the .o files is the endian of the machine.
  22.  
  23. Therefore the loader needs to swap bytes in every word it reads from the
  24. structure that it wants to understand.
  25.  
  26. Any help would be greatly appreciated.
  27.  
  28. Thanks
  29. Eric
  30. ewanco@kalvin.enet.dec.com
  31. --
  32. /===========================================================================\
  33. | Eric Ewanco - Software Engineer   For the rash and outrageous opinions ex-|
  34. | Digital Equipment, Maynard MA     pressed herein I alone am responsible;  |
  35. | ewanco@kalvin.enet.dec.com        they do not belong to DIGITAL(TM).      |
  36. \==========================- 2 Th 2:15 -====================================/
  37.  
  38.