Subject: Re: shareable executables
To: None <netbsd-users@NetBSD.ORG, cjones@rupert.oscs.montana.edu>
From: Paul Kranenburg <pk@cs.few.eur.nl>
List: netbsd-users
Date: 08/16/1995 12:36:06
> 2) Are executables somehow shareable (or the equivalent) by default?
>
Yes, "-z" behaviour is in fact the default for ld. It sets up the executable
in such a way that multiple invocations share the text pages in memory (i.e.,
"demand paged").
> 3) If not, how would I make a shareable executable? The sticky(8)
> man page says to use "ld -n -z", but ld doesn't recognize -n.
These options are mutually exclusive. Only `-z' will cause the executable
to be run in demand paged mode. `-n' (and `-N') will cause the both text
and data to read into memory in private pages (see a.out(5)).
Oh, and there isn't actually a sticky(8) command on the system. I guess
this manual page should be moved into another section..
-pk