Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site genix.UUCP Path: utzoo!watmath!clyde!floyd!cmcl2!lanl-a!unm-cvax!unmvax!genix!drew From: drew@genix.UUCP Newsgroups: net.unix-wizards Subject: how to do overlays in v7??? Message-ID: <571@genix.UUCP> Date: Thu, 5-Apr-84 13:05:01 EST Article-I.D.: genix.571 Posted: Thu Apr 5 13:05:01 1984 Date-Received: Sat, 7-Apr-84 04:11:20 EST Organization: Genix, Ltd., Albuquerque, NM Lines: 32 After grepping the documentaion on our system this is all I was able to come up with: from ld(1): -O This is an overlay file, only the text segment will be replaced by exec(2). Shared data must have the same layout as in the program overlaid. from exec(2): Exec in all its forms overlays the calling process with the named file, then transfers to the entry point of the core image of the file. There can be no return from a successful exec; the calling core image is lost. from a.out(5): #define A_MAGIC4 0405 /* overlay */ Hmm. That's not much to go on. What do I have to do to ensure the shared data has the same layout? How dow I distinguish shared from non-shared dat? Are that any tricks which will let me load the overlay then continue executing in shared code. Some trivial examples sure would help. -- Drew Einhorn {csu-cs,gatech,lanl-a,convex,pur-ee,ucbvax}!unmvax!genix!drew P.O. Box 781, Tijeras, NM 87059, USA. 505/281-1122 505/898-9666