From: utzoo!watmath!watcgl!dmmartindale
Newsgroups: net.unix-wizards
Title: Re: demand loading
Article-I.D.: watcgl.96
Posted: Tue Jan  4 14:10:35 1983
Received: Wed Jan  5 00:30:28 1983
References: utah-gr.673

Actually, the loader already supports everything you need: the -T
flag can handle non-zero text origins, and -e will set a non-zero
entry point.  It would seem that all you need to do is reserve another
"magic number" to indicate a demand-paged a.out whose block numbers
are handled without the 1-block offset, change the kernel to support
this, and change the loader to have a single-letter flag which sets
the magic number to the newly-selected value and sets up the text
origin and entry point defaults appropriately.  Shouldn't take long at all.
Oh yes, better have adb/sdb know about this too.  This might be more
work than the actual kernel and loader changes.

	Dave Martindale