Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site axiom.UUCP Path: utzoo!linus!axiom!smk From: smk@axiom.UUCP (Steven M. Kramer) Newsgroups: net.unix-wizards Subject: Re: something nasty in data, 4.2BSD Message-ID: <76@axiom.UUCP> Date: Fri, 2-Aug-85 22:56:23 EDT Article-I.D.: axiom.76 Posted: Fri Aug 2 22:56:23 1985 Date-Received: Sat, 3-Aug-85 09:23:52 EDT References: <1018@sdcsvax.UUCP> Organization: Axiom Technology, Newton MA Lines: 13 If you loaded code read-only (-n) or demand-paged (-z), etext is not necessarily on a R/W page. You must round up to the next protection unit of the machine in question and copy from there. Note that the loader forces the start of data on -z and -n files to be moved away from the text so that they don't share the same page (or else part of text will be R/W or part of data will be R/O!!). Also, are you saving the stack area. I find that region is important in most programs. :-) -- --steve kramer {allegra,genrad,ihnp4,utzoo,philabs,uw-beaver}!linus!axiom!smk (UUCP) linus!axiom!smk@mitre-bedford (MIL)