Mail Archives: djgpp/1999/10/11/20:01:54
Hi there!
I have a problem with object file formats. I managed to define a global
variable with the size of the output file in a linker script. The problem
is that I want a nasm file to use it. It isn't a problem to get a djgpp
c program to use it, nor to get a nasm coff-style object file to use it,
but it is to get a nasm a.out-style object file to use it. I can't use
the coff-style format because that doesn't support 16bit code and I want to
write a loader (I already have, actually). So I want to use an a.out file.
Now ld links it allright, but doesn't pay attention to symbols that are
used within that file. When I use objdump -i, I get errors that the
a.out-i386 format has an invalid header. Is this related to my problem? If so,
or not so, can anyone please help me to get a nasm file use a global symbol
defined in a ld linker script?
Thanx,
David Fokkema
- Raw text -