From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 9 20:27:22 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 B8FD916A41F for ; Tue, 9 Aug 2005 20:27:22 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from fileserver.fields.utoronto.ca (fileserver.fields.utoronto.ca [128.100.216.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8105144652 for ; Tue, 9 Aug 2005 20:05:33 +0000 (GMT) (envelope-from kris@obsecurity.org) Received: from fields.fields.utoronto.ca (fields.localdomain [192.168.216.11]) by fileserver.fields.utoronto.ca (8.12.8/8.12.8/Fields 6.0) with ESMTP id j79K5Rvf011240 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 9 Aug 2005 16:05:27 -0400 Received: from obsecurity.dyndns.org (localhost.localdomain [127.0.0.1]) by fields.fields.utoronto.ca (8.12.8/8.12.8/Fields WS 6.0) with ESMTP id j79K5Q6P010807; Tue, 9 Aug 2005 16:05:26 -0400 Received: by obsecurity.dyndns.org (Postfix, from userid 1000) id 19A2151333; Tue, 9 Aug 2005 16:05:25 -0400 (EDT) Date: Tue, 9 Aug 2005 16:05:25 -0400 From: Kris Kennaway To: "M. Warner Losh" Message-ID: <20050809200524.GA56682@xor.obsecurity.org> References: <20050809.133734.08360256.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cNdxnHkX5QqsyA0e" Content-Disposition: inline In-Reply-To: <20050809.133734.08360256.imp@bsdimp.com> User-Agent: Mutt/1.4.2.1i 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:27:23 -0000 --cNdxnHkX5QqsyA0e Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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. >=20 > 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. Kris --cNdxnHkX5QqsyA0e Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFC+QyEWry0BWjoQKURAu8vAKDIC4GYLBYOPsLfZhJrMPsLuyc1YQCgjeeE 4sX1/fkr8FYkPWuaS2lzO7s= =aftE -----END PGP SIGNATURE----- --cNdxnHkX5QqsyA0e--