Linux-flashplugin7 & rtld - RFC
Alexander Leidinger
Alexander at Leidinger.net
Wed Jun 21 13:50:56 UTC 2006
Quoting Norikatsu Shigemura <nork at freebsd.org> (from Wed, 21 Jun 2006
19:25:01 +0900 (JST)):
>> Quoting Norikatsu Shigemura <nork at freebsd.org> (from Wed, 21 Jun 2006
>> 15:36:19 +0900 (JST)):
>>>> Nork-san says that it is hard to make LPW work on 7-CURRENT. But, he
>>>> is trying to make it work with another approach.
>>> Yes, I'm working Userland COMPAT_LINUX technology[TM]:-).
>> Can you be a little bit more verbose what this is? Just a high level
>> overview. I'm curious since I have some ideas about some kind of
>> cross-compatibility "something" too (a combination of objcopy, a
>> liblinux2bsd and maybe some libmap stuff).
>
> I'm implementing like following codes to libc/libm/libpthread
> on 7-current with SYMVER_ENABLED=yes.
[example]
Ugh... I like parts of this (it's the same I thought about myself),
but parts of this are... not optimal in my opinion.
I don't like to spam our libXXX to contain GLIBC symbols. First I
feared that this could lead to unexpected side effects in problem
cases with linux programs which pick up native libs (e.g. when you
have LD_LIBRARY_PATH set to a directory with native libs and you try
to start a linux program after updating to the new default linux base
port). But I don't think this is the case (we get an error about an
incorrect ELF ABI). So ATM the only bad feeling I have about this is
the "spamming".
Did you tried to put this into a liblinux2bsd? The idea I had was to
try if such a lib can be "attached" to e.g. linux flashplugin. Either
with some objcopy (or similar) stuff, by trying to link again (with
liblinux2bsd), or with libmap.conf. Another nice try is to have a
program/script which does some known obj* stuff with object files,
libs and/or programs. The examples I wanted to look at with this stuff
are your linuxpluginwrapper, the linuxthreads port, my icc port and
maybe the ifc port (it's basically an adoption of my icc port, but
AFAIR there are some enhancements). All of them contain already some
kind of mappings between linux and bsd. And maybe a combination of
both ways (liblinux2bsd and a script which does obj* stuff) could lead
to a successfull assimilation of some linux-only stuff.
What do you think, does this sound like something which could be an
improvement to your current work?
Bye,
Alexander.
--
Selling GoodYear Eagle F1 235/40ZR18, 2x 4mm + 2x 5mm, ~130 EUR
you have to pick it up between Germany/Saarland and Luxembourg/Capellen
http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID = 72077137
More information about the freebsd-current
mailing list