Mail Archives: djgpp/1999/08/13/19:14:32
Hello,
I asked this question and these are the things I tried:
The first thing I tried was compiling binutils after a "./configure
--enable-targets=i386-go32". After that I had an ld which could produce
coff-go32 object files needed by dxegen. Then the problem was that ld
couldn't convert from the elf object format generated by gcc to the
coff-go32 object format. I tried the just compiled objcopy (part of
binutils) to convert from elf to coff-go32, but the elf files generated
by gcc contain multiple sections and so the produced coff-go32 file
contains multiple sections too. However, dxegen can only handle files
with one section.
One possibility (that I know of) remains, and that one works; building a
cross compiler. At www.delorie.com/howto/djgpp/linux-x-djgpp.html DJ
Delorie describes how to do that. So, to create a DXE under Linux you
call the cross-to-DOS gcc to compile the module. Then dxegen must call
the cross-to-DOS ld to do the linking.
Many thanks go to Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>,
Charles Sandmann <sandmann AT clio DOT rice DOT edu> and Eli Zaretskii
<eliz AT is DOT elta DOT co DOT il> for their help. My thanks go to DJ Delorie
<dj AT delorie DOT com> for writing the "Building a Linux-x-djgpp cross
compiler" HOWTO.
Kind regards,
Daniel Horchner
Bodo Hörchner wrote:
>
> Hello,
> Is there anybody here who can tell me how to get ld (Linux) to generate
> DXE files? It is possible to load and execute them under native Linux,
> but I want to be able to generate them under Linux too without the need
> for DOS.
> If I try to generate a DXE with a Linux version of dxegen I get the
> following response of ld:
> ld: target coff-go32 not found
> This is not a very big surprise because ld says:
> ld: supported targets: elf32-i386 a.out-i386-linux srec symbolsrec
> tekhex binary ihex trad-core
>
> Anybody? Many thanks in advance.
>
> Daniel Horchner
- Raw text -