From owner-freebsd-current@FreeBSD.ORG Wed Jun 21 13:50:56 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0EA4716A481; Wed, 21 Jun 2006 13:50:56 +0000 (UTC) (envelope-from Alexander@Leidinger.net) Received: from www.ebusiness-leidinger.de (jojo.ms-net.de [84.16.236.246]) by mx1.FreeBSD.org (Postfix) with ESMTP id A788D43D49; Wed, 21 Jun 2006 13:50:53 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from Andro-Beta.Leidinger.net (p54A5F6CC.dip.t-dialin.net [84.165.246.204]) (authenticated bits=0) by www.ebusiness-leidinger.de (8.13.6/8.13.6) with ESMTP id k5LDjgli073418; Wed, 21 Jun 2006 15:45:43 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from localhost (localhost [127.0.0.1]) by Andro-Beta.Leidinger.net (8.13.4/8.13.3) with ESMTP id k5LDorfF097195; Wed, 21 Jun 2006 15:50:53 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from pslux.cec.eu.int (pslux.cec.eu.int [158.169.9.14]) by webmail.leidinger.net (Horde MIME library) with HTTP; Wed, 21 Jun 2006 15:50:53 +0200 Message-ID: <20060621155053.d6lseiz8z4ow8wo8@netchild.homeip.net> X-Priority: 3 (Normal) Date: Wed, 21 Jun 2006 15:50:53 +0200 From: Alexander Leidinger To: Norikatsu Shigemura References: <44986777.6070601@FreeBSD.org> <20060621061437.GA53019@fit.vutbr.cz> <2265.211.18.249.19.1150871779.squirrel@mail.ninth-nine.com> <20060621121114.h6udocel5wsgg8sg@netchild.homeip.net> <2692.219.127.74.121.1150885501.squirrel@mail.ninth-nine.com> In-Reply-To: <2692.219.127.74.121.1150885501.squirrel@mail.ninth-nine.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.1) / FreeBSD-4.11 X-Virus-Scanned: by amavisd-new Cc: freebsd-current@freebsd.org Subject: Re: Linux-flashplugin7 & rtld - RFC X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 21 Jun 2006 13:50:56 -0000 Quoting Norikatsu Shigemura (from Wed, 21 Jun 2006 =20 19:25:01 +0900 (JST)): >> Quoting Norikatsu Shigemura (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=3Dyes. [example] Ugh... I like parts of this (it's the same I thought about myself), =20 but parts of this are... not optimal in my opinion. I don't like to spam our libXXX to contain GLIBC symbols. First I =20 feared that this could lead to unexpected side effects in problem =20 cases with linux programs which pick up native libs (e.g. when you =20 have LD_LIBRARY_PATH set to a directory with native libs and you try =20 to start a linux program after updating to the new default linux base =20 port). But I don't think this is the case (we get an error about an =20 incorrect ELF ABI). So ATM the only bad feeling I have about this is =20 the "spamming". Did you tried to put this into a liblinux2bsd? The idea I had was to =20 try if such a lib can be "attached" to e.g. linux flashplugin. Either =20 with some objcopy (or similar) stuff, by trying to link again (with =20 liblinux2bsd), or with libmap.conf. Another nice try is to have a =20 program/script which does some known obj* stuff with object files, =20 libs and/or programs. The examples I wanted to look at with this stuff =20 are your linuxpluginwrapper, the linuxthreads port, my icc port and =20 maybe the ifc port (it's basically an adoption of my icc port, but =20 AFAIR there are some enhancements). All of them contain already some =20 kind of mappings between linux and bsd. And maybe a combination of =20 both ways (liblinux2bsd and a script which does obj* stuff) could lead =20 to a successfull assimilation of some linux-only stuff. What do you think, does this sound like something which could be an =20 improvement to your current work? Bye, Alexander. --=20 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 =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137