Mail Archives: djgpp/1999/11/29/09:46:43
"Alexei A. Frounze" wrote:
> Mark & Candice White wrote:
>
> > I read your discussion thread of "JLOC and COFF" with John Fine.
> > So I'm sure your talking about nonlinked COFF, but just in case
> > I will say it seems trivial to write a loader for linked COFF.
>
> Nonlinked means a COFF file w/o optinoal (a.out) header? Linked with such header,
> right?
djgpp and nasm make coff files made to be linked, djgpp can be setup to do
the linking to.
I use a modified linker script to make linked coff with out the go32(dos) stuff.
I take this file load it in mem at 0x1000 and look the dword at 0x1024 for the
start of the code, and jump there. (with pmode all set up)
I have yet to have a problem with offsets or such because ld already linked it to be
a flat file.
>
>
> > If your working on a way to use COFF as a dll type format for your
> > hobby OS, please make it easy and available for others to add to their
> > projects.
>
> Not dlls (although why not?), but executables. I've chosen COFF because DJGPP is a
> free compiler that generates such files. I want to make development easy for anyone.
ELF is made to be dynamically linked.
>
>
> > Just out of curiosity why are you using COFF not ELF?
>
> Don't know. ELF is not bad... But DJGPP for DOS doesn't generate ELFs, although for
> Linux ELF is a normal thing (I use DOS/Win).
I use djgpp also and use coff because I was already booting with it before I found
out that I could just rebuild as,ld,ar... to make elf in DOS.
If ease is what your after you could rebuild these and post them for others.
>
>
> Bye.
> Alexei A. Frounze
> ------------------------------------
> If you wanna stay a coder,
> You must keep your minds in order.
> ;-))
--
Mark & Candice White
System programming hobbyists.
http://members.home.net/mhewii/welcome.htm
_________________New Years Cheer__________
To the nerds, geeks and computer techs
there's no need to frown
you'll be getting over-time
when the bug brings the system down.
- Raw text -