From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <1147b9e4528b3aa45e18363520c4dd8c@brasstown.quanstro.net> References: <7c8f9ee75eee1c9d33beb57da78e298e@quintile.net> <20120712055118.2e15abf3@vardo.ethans.dre.am> <1147b9e4528b3aa45e18363520c4dd8c@brasstown.quanstro.net> Date: Tue, 17 Jul 2012 23:17:34 +0100 Message-ID: From: Charles Forsyth To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=0015175cff26ca5cc404c50de951 Subject: Re: [9fans] 8c and elf shared libraries Topicbox-Message-UUID: a34bf662-ead7-11e9-9d60-3106f5b1d025 --0015175cff26ca5cc404c50de951 Content-Type: text/plain; charset=UTF-8 Normally with these schemes you need to save and restore the module (data) pointer appropriately for calls in and out of the library. Each library has its own data. For the library to be used by Linux applications you'd need to mimic the conventions expected by the Linux programs closely. The code also needs to be position-independent (in most of the methods I've seen). The machines aren't well-suited for the software we now run. We spend quite a bit of time emulating protected procedures and dynamic linkage. On 17 July 2012 22:59, erik quanstrom wrote: > i wonder if you could use the gs global register trick > and a bit of runtime setup to implement this. > > (ducks) > > - erik > > --0015175cff26ca5cc404c50de951 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Normally with these schemes you need to save and restore the module (data) = pointer appropriately for calls in and out of the library.
Each library= has its own data. For the library to be used by Linux applications you'= ;d need to mimic the conventions expected by the Linux programs closely. Th= e code also needs to be position-independent (in most of the methods I'= ve seen).

The machines aren't well-suited for the software we= now run. We spend quite a bit of time emulating protected procedures and d= ynamic linkage.

On 17 July 2012 22= :59, erik quanstrom <quanstro@quanstro.net> wrote:
i wonder if you could use the gs global regi= ster trick
and a bit of runtime setup to implement this.

(ducks)

- erik


--0015175cff26ca5cc404c50de951--