Article View: gnu.gcc.help
Article #53534Help: cross Assembly from Sparc SunOS4.1.1 to QB2 386SX SYSVR3.2
From: Oran Davis
Date: Thu, 14 Nov 1991 06:37
Date: Thu, 14 Nov 1991 06:37
34 lines
2121 bytes
2121 bytes
Hi networkers, I am looking for someone that has followed this path before and can offer insight or source code. I have successfully created a cross compiler (upto the Assembly source level) on a Sun SparcSation OS4.1.1 to target QB2 386SX Unix SVR3.2. I am stuck at the Assembly level with gas-1.36. I used this version of gas because I found the COFF packages on internet only patched this version (I found no other patches). Using the patches and setting all flags to source and target h/w, I managed to get "a386" (gas) to produce a COFF output. Two problems still exist: 1) The structurs sizes define on the SVR3.2 were hard wired. This caused "a386" to crash until I changed it to sizeof(). This led me to watch for alligbment problems. I had to use SVR3.2 system includes for COFF data. 2) Once I fixed the first problem I am left with routines that write structures from the Sparc to the NFS mounted QB2 disk, using wrong structure size for the QB2. This is due to different allignement of the fields in the COFF structures on the writing Sparc and reading 386SX. Byte swapping is taken care of correctly. I am now left with the task of modifying all the writing routines for COFF. Before I embark on this perilouse journy I though of the net. Please any insights are welcomed source code most welcomed, pointers etc. I am using the sun compiler rather than gcc-1.39 which I can use also. Is there more alignment control there (a thought)? Thanks, >- Oran oran@spg.amdahl.com
Technical Details
Message-ID:
<ORAN.91Nov13223749@int.vlss.amdahl.com>Path:
arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!charon.amdahl.com!amdahl!juts!oranShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,30051cfc5fe630bf,start X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1991-11-14 02:47:18 PST Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!charon.amdahl.com!amdahl!juts!oran From: oran@vlss.amdahl.com (Oran Davis) Newsgroups: gnu.gcc.help Subject: Help: cross Assembly from Sparc SunOS4.1.1 to QB2 386SX SYSVR3.2 Message-ID: <ORAN.91Nov13223749@int.vlss.amdahl.com> Date: 14 Nov 91 06:37:49 GMT Sender: netnews@ccc.amdahl.com Distribution: gnu Organization: Amdahl Corp., Sunnyvale CA Lines: 34