From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 9 21:23:34 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 E9B9316A41F for ; Tue, 9 Aug 2005 21:23:34 +0000 (GMT) (envelope-from sean-freebsd@farley.org) Received: from mail.farley.org (farley.org [67.64.95.201]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8D5F44448D for ; Tue, 9 Aug 2005 21:23:34 +0000 (GMT) (envelope-from sean-freebsd@farley.org) Received: from thor.farley.org (thor.farley.org [IPv6:2001:470:1f01:290:1::5]) by mail.farley.org (8.13.1/8.13.1) with ESMTP id j79LNS3T053487; Tue, 9 Aug 2005 16:23:28 -0500 (CDT) (envelope-from sean-freebsd@farley.org) Date: Tue, 9 Aug 2005 16:23:29 -0500 (CDT) From: =?ISO-8859-1?Q?Se=E1n_C=2E_Farley?= To: "M. Warner Losh" In-Reply-To: <20050809.133734.08360256.imp@bsdimp.com> Message-ID: <20050809161545.M871@thor.farley.org> References: <20050809.133734.08360256.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="0-910406556-1123622609=:871" 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 21:23:35 -0000 This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-910406556-1123622609=:871 Content-Type: TEXT/PLAIN; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Tue, 9 Aug 2005, 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... Although I have never tried it, I had read somewhere that you could possibly convert a Linux .so using objcopy. Found it: http://groups-beta.google.com/group/fa.freebsd.questions/browse_frm/thread/= 2c1ce35fab83427/7add378b8e5a7006 I am curious if it works for you too. Se=E1n --=20 sean-freebsd@farley.org --0-910406556-1123622609=:871--