Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Feb 1997 13:22:51 +1100 (EST)
From:      proff@suburbia.net
To:        witr@rwwa.com (Robert Withrow)
Cc:        hackers@freebsd.org
Subject:   Re: In what way are shared libs ``shared''?
Message-ID:  <19970209022252.24419.qmail@suburbia.net>
In-Reply-To: <199702081502.KAA29141@spooky.rwwa.com> from Robert Withrow at "Feb 8, 97 10:02:48 am"

next in thread | previous in thread | raw e-mail | index | archive | help
> Looking at rtld.c I see:
> 
>   addr = mmap(0, hdr.a_text + hdr.a_data + hdr.a_bss,
>               PROT_READ|PROT_EXEC, MAP_COPY, fd, 0)
> 
> >From my understanding of MAP_COPY semantics, this is *not*
> a shared mapping.  If I am right about this, then how
> are shared libs shared?
> 
> -----------------------------------------------------------------------------
> Robert Withrow, Tel: +1 617 592 8935, Net: witr@rwwa.COM
> 
> 
> 

My guess would be that this is due to writable statics in library code, so
the library is shared, but copy-on-write.


--
Prof. Julian Assange  |If you want to build a ship, don't drum up people
		      |together to collect wood and don't assign them tasks
proff@iq.org          |and work, but rather teach them to long for the endless
proff@gnu.ai.mit.edu  |immensity of the sea. -- Antoine de Saint Exupery



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970209022252.24419.qmail>