From owner-freebsd-hackers Fri Mar 28 09:06:53 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id JAA20999 for hackers-outgoing; Fri, 28 Mar 1997 09:06:53 -0800 (PST) Received: from news.IAEhv.nl (root@news.IAEhv.nl [194.151.64.4]) by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id JAA20990 for ; Fri, 28 Mar 1997 09:06:47 -0800 (PST) Received: from LOCAL (uucp@localhost) by news.IAEhv.nl (8.6.13/1.63) with IAEhv.nl; pid 3057 on Fri, 28 Mar 1997 18:05:18 +0100; id SAA03057 efrom: marc@nietzsche.bowtie.nl; eto: UNKNOWN Received: from localhost (localhost [127.0.0.1]) by nietzsche.bowtie.nl (8.8.2/8.7.3) with ESMTP id SAA08349; Fri, 28 Mar 1997 18:04:08 +0100 (MET) Message-Id: <199703281704.SAA08349@nietzsche.bowtie.nl> X-Mailer: exmh version 1.6.7 5/3/96 To: Terry Lambert cc: deischen@iworks.InterWorks.org, jdp@austin.polstra.com, freebsd-hackers@FreeBSD.org Subject: Re: Building Solaris->FreeBSD cross binutils In-reply-to: terry's message of Fri, 28 Mar 1997 09:07:31 -0700. <199703281607.JAA03342@phaeton.artisoft.com> Date: Fri, 28 Mar 1997 18:04:07 +0100 From: Marc van Kempen Sender: owner-hackers@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > > On a related note, can anyone tell me if I can use objcopy to > > change Linux (static) elf libraries into FreeBSD libraries? > > Not if the linraries implement system calls, or call system calls > and depend on machine specific behaviour differences, or access > devices and depend on driver specific behaviour which differes > between the OS's. > I don't think so, but maybe it depends on threading. It's the library for the solid server database server (http://www.solidtech.com) But you're saying that it should be possible? I tried it once on an Irix (I didn't have enough diskspace on my FreeBSD box at the time to build the binutils), but I couldn't get it to work on that platform. > > > If not, is there an alternative? > > Create a Linux cross environment and use them as Linux libraries, > running the binaries under the Linux ABI. > > I did this already and this works fine, but I can't debug the resulting binary, because the ptrace function is not supported in the emulator, I guess this is not trivial to add? So now I'm back to the good old days of debugging with printf's :( Marc. ---------------------------------------------------- Marc van Kempen BowTie Technology Email: marc@bowtie.nl WWW & Databases tel. +31 40 2 43 20 65 fax. +31 40 2 44 21 86 http://www.bowtie.nl ----------------------------------------------------