[alt.msdos.programmer] .EXE format, overlays, DOS fn 4B03h

peter@atlas.abccomp.oz.au (Peter Barker) (05/21/91)

We are writing an overlay manager, using DOS function 4B03h (load overlay).
We want to append some information to the overlay file so our program can
read it, but have it ignored by DOS function 4B03h (perhaps in a similar
way to that used by MicroSoft's CodeView). We originally assumed that the
DOS loader obtained all its information about the contents of the file 
being loaded from the header at the start of the .EXE file. In this case
we would be able to append information to the end of the file, and the loader
would ignore it, as it does with symbol information provided by the linker
for CodeView. Unfortunately this is not the case - the file does not load
correctly. Does anyone have any information about how symbolic information
is stored in the .EXE by linkers? We should then be able to use the same
method.
Thankyou,
-- 
Peter Barker               |   Internet   peter@atlas.abccomp.oz.au
TurboSoft Pty Ltd          |   JANET      peter%atlas.abccomp.oz.au@uk.ac.ukc
248 Johnston St, Annandale |   UUCP       uunet!munnari!atlas.abccomp.oz!peter
NSW 2038    Australia      |  Telephone   +(612) 552 1266