Newsgroups: comp.os.msdos.djgpp From: "The Cyber God" Subject: Re: Using COFF files. Nntp-Posting-Host: p12.haifa4.actcom.co.il Lines: 35 Message-ID: References: <6d63e0$3qm AT news DOT euro DOT net> Date: Fri, 27 Feb 1998 20:16:34 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I have the same problem! talrun AT actcom DOT co DOT il Pieter van Ginkel wrote in message <6d63e0$3qm AT news DOT euro DOT net>... >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 > >