home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.gcc.help
- 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
- From: eje@irenaeus.mlo.dec.com (Eric James Ewanco)
- Subject: big-endian loader for little-endian machine
- Message-ID: <1992Oct14.184802.19669@engage.pko.dec.com>
- Sender: newsdaemon@engage.pko.dec.com (USENET News Daemon)
- Reply-To: ewanco@kalvin.enet.dec.com
- Organization: Digital Equipment Corporation
- Date: Wed, 14 Oct 1992 18:48:02 GMT
- Lines: 26
-
-
- I am trying to use GNU to produce executable files for an embedded system
- (which reads a.out files). The host is a little-endian MIPS (DS3100). The
- target is 68030.
-
- Unfortunately I discovered that GNU ld appears to be fixed in endian; it
- assumes that it will run on the same endian machine as the target. Is there
- a version of GNU ld that has configurable endian? The .o files produced by
- gas are big-endian in format, and ld gets confused because it assumes the
- endian of the .o files is the endian of the machine.
-
- Therefore the loader needs to swap bytes in every word it reads from the
- structure that it wants to understand.
-
- Any help would be greatly appreciated.
-
- Thanks
- Eric
- ewanco@kalvin.enet.dec.com
- --
- /===========================================================================\
- | Eric Ewanco - Software Engineer For the rash and outrageous opinions ex-|
- | Digital Equipment, Maynard MA pressed herein I alone am responsible; |
- | ewanco@kalvin.enet.dec.com they do not belong to DIGITAL(TM). |
- \==========================- 2 Th 2:15 -====================================/
-
-