Subject: Re: a.out dynamic libraries
To: None <tech-toolchain@NetBSD.ORG (NetBSD Toolchain Technical Discussion>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: tech-toolchain
Date: 05/24/1998 16:13:06
On Sun, 24 May 1998 18:40:26 -0400 (EDT) 
 woods@most.weird.com (Greg A. Woods) wrote:

 > This idea is a gross and horrible hack, but may have enough utility to
 > give it merit:  How about a system call to set and clear VTEXT on a
 > file?  Better yet implement a usage counter with increment/decrement
 > calls and check that counter everywhere that VTEXT is checked.  Ld.so
 > would increment this flag on shared libraries that were in use and hooks
 > would be needed to decrement the counter when the libraries are
 > unmapped.  This call would of course be restricted to root (and maybe
 > to the owner of the file too).

I could go for a special flag to mmap(2)...

Jason R. Thorpe                                       thorpej@nas.nasa.gov
NASA Ames Research Center                            Home: +1 408 866 1912
NAS: M/S 258-5                                       Work: +1 650 604 0935
Moffett Field, CA 94035                             Pager: +1 650 428 6939