From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 9 20:53:47 2005 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8439E16A41F for ; Tue, 9 Aug 2005 20:53:47 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2849B43D58 for ; Tue, 9 Aug 2005 20:53:47 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.3/8.13.3) with ESMTP id j79Kq8NR031055; Tue, 9 Aug 2005 14:52:08 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Tue, 09 Aug 2005 14:52:08 -0600 (MDT) Message-Id: <20050809.145208.41664460.imp@bsdimp.com> To: kris@obsecurity.org From: Warner Losh In-Reply-To: <20050809200524.GA56682@xor.obsecurity.org> References: <20050809.133734.08360256.imp@bsdimp.com> <20050809200524.GA56682@xor.obsecurity.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Tue, 09 Aug 2005 14:52:08 -0600 (MDT) Cc: hackers@freebsd.org Subject: Re: Converting libfoo.so for linux to freebsd X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Aug 2005 20:53:47 -0000 > On Tue, Aug 09, 2005 at 01:37:34PM -0600, M. Warner Losh wrote: > > I have recently purcahsed a device that comes with a .so for linux, > > but no sources. Is there any way one can take an arbitrary linux .so > > which appears to have no dependencies to a FreeBSD .so? The binary > > code is about 20k or so. > > > > Alternatively, anybody know how to take a linux .so and generate a .s > > that can be fed into the linux toolchain to generate a new .so... > > Would it be acceptable to just build your binary as a linux one? This > would be easiest. Does the Linux Sane work on FreeBSD? I thought there were issues with libusb that precluded that... Warner