Mail Archives: djgpp/1992/07/23/16:04:41
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
- Raw text -