Mail Archives: djgpp/1998/01/26/03:45:20
Eric Lange wrote:
[...]
> >
> > Why would you want to do this? Only real reason I can think of for replacing
> > the DJGPP startup code is so one could load some kind of virus-infested
> > startup code in it's place.....
>
> I take some offense to that remark. I can think of several reasons why
> someone would want to do that. In my case, I am developing a hardware
> virtualizer for DOS to allow devices to be emulated in software. You may not be
> aware, but this is not an easy task in an operating system that gives free reign
> to the application. I have developed most of the core code, but I need some way
> to develop (and allow others to develop) driver code, and I don't want to force
> them to use assembly language. I have my own loader, I just need some way to
> package the code in some other format than an .EXE.
>
> So there. Does anybody (else) have any ideas?
Not really. I guess it is possible, look at the
specs file and djgpp.djl. You also might have to change something
in the BFD of ld, I am not sure about that. What you will
definitely need is to convince MASM to produce COFF output.
For changing the startup code, I think Bill Currie has written
a bootstrap loader for djgpp programs, to boot an OS that
is based on DJGPP. Though this is not what you want, I guess
you can steal some good ideas from him ;-)
Check the news archive on www.djgpp.com, and I think
I have seen it on the djgpp/v2tk subdirectory.
HTH
--
Ciao
Tom
*************************************************************
* Thomas Demmer *
* Lehrstuhl fuer Stroemungsmechanik *
* Ruhr-Uni-Bochum *
* Universitaetsstr. 150 *
* D-44780 Bochum *
* Tel: +49 234 700 6434 *
* Fax: +49 234 709 4162 *
* http://www.lstm.ruhr-uni-bochum.de/~demmer *
*************************************************************
- Raw text -