www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/27/05:15:49

From: "Pieter van Ginkel" <pginkel AT westbrabant DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Using COFF files.
Date: 27 Feb 1998 10:10:08 GMT
Organization: EuroNet Internet
Lines: 24
Message-ID: <6d63e0$3qm@news.euro.net>
NNTP-Posting-Host: breda08.pstn07.concepts.nl
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I want to create a library that dynamically loads routines from COFF files
into memory and then returns the pointer to the routines in the COFF file to
the program. I've been reading the COFF things from the Delorie DJGPP site
and there are a few things I don't really understand. Can anybody help me?

* First, How can I just load the whole COFF file into memory and let the
whole thing run. Is that at all possible or is there more to be done before
the file runs.
* I suppose that the entries in the header files are converted to external
symbols. Do I have to do something's with these?
* Suppose I open the COFF file, locate a function, load that one into memory
and that return the pointer to the begin of that function to the user. I
don't think that's the right thing to do? If I use functions from the libc
library, how do I ensure that the routine has access to these? Do I need to
collect all the pointers to these routines that are already into memory (the
loading program) and give them to the function? How do I do this.

Could somebody give me some guidelines so I can get starting at my loader???

Foxe

pginkel AT westbrabant DOT net


- Raw text -


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