Date: Fri, 28 Mar 1997 18:04:07 +0100 From: Marc van Kempen <marc@bowtie.nl> To: Terry Lambert <terry@lambert.org> Cc: deischen@iworks.InterWorks.org, jdp@austin.polstra.com, freebsd-hackers@FreeBSD.org Subject: Re: Building Solaris->FreeBSD cross binutils Message-ID: <199703281704.SAA08349@nietzsche.bowtie.nl> In-Reply-To: terry's message of Fri, 28 Mar 1997 09:07:31 -0700. <199703281607.JAA03342@phaeton.artisoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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 ----------------------------------------------------
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199703281704.SAA08349>