Subject: Re: Linking against Linux binary modules
To: None <>
From: Christos Zoulas <>
List: current-users
Date: 09/28/2006 12:46:20
In article <>,
Thor Lancelot Simon  <> wrote:
>On Thu, Sep 28, 2006 at 03:33:40PM +0400, Valeriy E. Ushakov wrote:
>> On Thu, Sep 28, 2006 at 03:42:47 -0700, Brian Buhrow wrote:
>> The idea has been discussed internally between few developers, but no
>> actual design or coding has been done. The first step would be to
>> teach to load linux dsos - that will be useful by itself as that
>> will make it possible to use linux web-browser plugins with natively
>> compiled netbsd browsers.
>I have trouble believing that achieving that result (using linux
>web-browser plugins with natively compiled NetBSD browsers) will be
>anywhere near as simple as merely teaching to load linux shared
>object files.
>How, for example, do you intend to solve the problem that many functions
>in the C library in Linux have the same name, but different signatures
>than their NetBSD counterparts?

It is also sizes of structs. You'll need to wrap most of them with small
translation shims and then call the real linux code. Same for syscalls that
do not have the same numbers. Finally you need to fake other ELF library