Date: Thu, 23 Jul 92 14:07:27 -0500 From: rcharif AT math DOT utexas DOT edu Posted-Date: Thu, 23 Jul 92 14:07:27 -0500 To: alvin AT eyepoint DOT on DOT ca Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: cross compilation for DJ1.0x Reply-To: rcharif AT math DOT utexas DOT edu to run on the PC. The problem that I have run into is that the a.out format supported(not quite, needed some fixin) gld is slightly different from that used by go32. The a.out format used by gld supposes that the text segment starts at a 0x1000 boundary in the file. DJ makes the text segment start at 0x20 just after the exec structure. In the old binutil you just have to modify the a.out file and set : #define _N_HDROFF(x) 0. Unfortunately, I couldn't find the location to make such modification for the cross linker. Another particularity is that data segment starts at 0x400000. So when you link give the following switch : -Tdata 0x400000, and gld will get you the proper data segment alignment. Please let me know if you manage to find how to change the text segment offset . You can find the latest versions of the binutils at cygnus.com:/pub alpha.gnu.ai.mit.edu (128.52.46.26) Regards, Rami El Charif