*BSD News Article 5109


Return to BSD News archive

Path: sserve!manuel!munnari.oz.au!uunet!europa.asd.contel.com!darwin.sura.net!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!unidui!du9ds3!veit
From: veit@du9ds3.uni-duisburg.de (Holger Veit)
Newsgroups: comp.unix.bsd
Subject: Re: Shared Libs for X11?, was Re: 386bsd -- The New Newsgroup
Date: 16 Sep 92 11:24:29 GMT
Organization: Uni-Duisburg FB9 Datenverarbeitung
Lines: 32
Message-ID: <veit.716642669@du9ds3>
References: <18iprpINNg6e@agate.berkeley.edu> <1992Sep8.200625.2894@socrates.umd.edu> 	<veit.716026274@du9ds3> <18lkkkINN14d@agate.berkeley.edu> 	<veit.716107923@du9ds3> <7dnL02y821gh01@JUTS.ccc.amdahl.com> 	<veit.716291291@du9ds3> <1992Sep14.232949.9093@bby.com.au>, <2aFn02vQ22Jx01@JUTS.ccc.amdahl.com>
Reply-To: veit@du9ds3.uni-duisburg.de
NNTP-Posting-Host: du9ds3.uni-duisburg.de

In <2aFn02vQ22Jx01@JUTS.ccc.amdahl.com> gab10@cd.amdahl.com (Gary A Browning) writes:

>In article <1992Sep15.143458.15689@news.cs.brandeis.edu>,
>st923150@pip.cc.brandeis.edu writes:
>> Well, in a way, the mechanism involved by SunOS does use
>> self-modifying code.
>> Sorta, that is.  The executable image is modified in place immediately
>> before
>> execution begins.

>Does this make the text of the executable non-sharable between multiple 
>processes?  Or is the O/S smart enough to recognize that, though modified, each
>process would be running the same modifications and therefore the text is
>sharable?

>-- 
>Gary Browning        | Exhilaration is that feeling you get just after a
>		     | great idea hits you, and just before you realize
>                     | what is wrong with it.

This should not influence sharing of text segments between processes. The code
is the same for both processes and will be seen by the processes at the same
virtual address. There are no references to absolute physical addresses which
could cause the code to be position dependent. 

Holger

-- 
|  |   / Dr. Holger Veit         | INTERNET: veit@du9ds3.uni-duisburg.de
|__|  /  University of Duisburg  | BITNET: veit%du9ds3.uni-duisburg.de@UNIDO
|  | /   Dept. of Electr. Eng.   | "No, my programs are not BUGGY, these are
|  |/    Inst. f. Dataprocessing |          just unexpected FEATURES"