delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/29/09:46:43

From: Mark & Candice White <mhewii AT home DOT com>
Newsgroups: comp.lang.asm.x86,comp.os.msdos.djgpp
Subject: Re: COFF - relocation entries
Date: 29 Nov 1999 14:20:20 GMT
Organization: @Home Network
Lines: 64
Approved: <johnfine AT erols DOT com>
Message-ID: <81u234$b6m$21@autumn.news.rcn.net>
References: <81oubk$ku0$2 AT autumn DOT news DOT rcn DOT net> <81rg7i$5lg$5 AT autumn DOT news DOT rcn DOT net> <81sca3$kp6$4 AT autumn DOT news DOT rcn DOT net>
Mime-Version: 1.0
X-Trace: aNZODdKsl7NIL3FfKi+lp+rCi6v62WF2iKMCSWe2AMA=
X-Complaints-To: abuse AT rcn DOT com
NNTP-Posting-Date: 29 Nov 1999 14:20:20 GMT
X-Track2: 2
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019