something nasty in data, 4.2BSD

Steven M. Kramer smk at axiom.UUCP
Sat Aug 3 12:56:23 AEST 1985


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 at mitre-bedford					(MIL)



More information about the Comp.unix.wizards mailing list