Re: Doubts about Segmentation




Dirk Wolfgang Glomp wrote:
Well, not really. MZ had no provision for such, but a number of folks
created overlay linkers which allowed the overlays to be attached to
the end of the MZ (which was what the OS loaded), but they were never
really part of it. The overlay linker would add code to your program
to load and manage the overlays, it was never an OS function.

RBIL->Inter61b.zip->Interrup.g

INT 21 - DOS 2+ - "EXEC" - LOAD AND/OR EXECUTE PROGRAM
AH = 4Bh
AL = type of load
03h load overlay

Offset Size Description (Table 01591)
00h WORD segment at which to load overlay
02h WORD relocation factor to apply to overlay if in .EXE format

...but i never test it.


That MS-DOS function is not really any sort of overlay manager as one
would normally understand the term. 0x4b03 loads an ordinary
executable (COM or MZ) into memory, at a location you specify, and with
a relocation factor you specify (usually the two are the same), but
does not create any sort of execution environment (PSP, environment,
etc. for it, nor does it start executing it. It just loads the
executable into memory, and returns control to your program (which
would then presumably do something with the loaded program).

In any event, this still doesn't imply that there's any sort of overlay
structure defined for MZ files, since the function just loads an entire
ordinary MZ, not some part of a MZ. It would certainly be possible to
use that for the basis of an overlay manager (and several folks did),
although it does require that each overlay live in a separate file

.



Relevant Pages

  • Re: Problems with the On Lisp development model ...
    ... > distribution setting like Debian, ... > describe above is an overlay of previously distributed code with the ... > on patch installation which would load the module into any installed ... You can also load fasl ...
    (comp.lang.lisp)
  • Re: unmountable boot volume
    ... Windows XP sometimes has issues with overlay software. ... You may need to perform a Clean Installation without their overlay ... > now my computer wont even load XP, ... but I can't get XP to load from disc (I ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: Outmoding CDs (LiveCD)
    ... It would be possible also to separate /home from the overlay: ... loads an initrd with the command line "reset_overlay" to reset the system. ... The result would be that the initrd would load, load modules, and read its configuration files to set up; but then instead of setting up the proper overlay on /, it would FORMAT the overlay, FORMAT /boot, copy /boot from the squashfs back to /boot, correct menu.lst, sync, and reset. ... It may be possible to squashfs the union of at user request and then reboot, destroy the two partitions and resize, throw the new squashfs image in, and continue loading as normal. ...
    (Ubuntu)
  • xp upgrade from me
    ... If I do this upgrade do I ned to wipe my hard drive and ... load xp or can I do an overlay ...
    (microsoft.public.windowsxp.general)