From owner-freebsd-current@FreeBSD.ORG Wed Jun 21 10:25:06 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 3FA2516A474; Wed, 21 Jun 2006 10:25:06 +0000 (UTC) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A1FD43D45; Wed, 21 Jun 2006 10:25:03 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from mail.ninth-nine.com (localhost [IPv6:::1]) by sakura.ninth-nine.com (8.13.6/8.13.6/NinthNine) with ESMTP id k5LAP1Ll064186; Wed, 21 Jun 2006 19:25:01 +0900 (JST) (envelope-from nork@FreeBSD.org) Received: from 219.127.74.121 (SquirrelMail authenticated user nork) by mail.ninth-nine.com with HTTP; Wed, 21 Jun 2006 19:25:01 +0900 (JST) Message-ID: <2692.219.127.74.121.1150885501.squirrel@mail.ninth-nine.com> In-Reply-To: <20060621121114.h6udocel5wsgg8sg@netchild.homeip.net> 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> Date: Wed, 21 Jun 2006 19:25:01 +0900 (JST) From: "Norikatsu Shigemura" To: "Alexander Leidinger" User-Agent: SquirrelMail/1.4.6 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-2022-jp Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (sakura.ninth-nine.com [IPv6:::1]); Wed, 21 Jun 2006 19:25:01 +0900 (JST) Cc: freebsd-current@FreeBSD.org, Norikatsu Shigemura 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 10:25:06 -0000 > 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=yes. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - #include #include #define SYM_COMPAT(sym, impl, ver) \ __sym_compat(sym, impl, ver) #define GLIBC_SYMBOL_2(sym, major, minor) \ GLIBC_##major##_##minor##_##sym #define GLIBC_COMPAT_2(sym, major, minor) \ SYM_COMPAT(sym, GLIBC_SYMBOL_2(sym, major, minor), GLIBC_ ##major. ##minor); #include /* * strcmp(3) */ GLIBC_COMPAT_2(strcmp, 2, 0); int GLIBC_SYMBOL_2(strcmp, 2, 0) (const char *s1, const char *s2) { int ret; ret = strcmp(s1, s2); dprintf("strcmp(\"%s\", \"%s\") = %d", s1, s2, ret); return ret; } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - And Version.def, too. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # $FreeBSD$ GLIBC_2.0 { strcmp; : } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -