Subject: Re: GNU binutils 2.9.1 (was gcc-2.95.2 gcj)
To: Anders Dinsen <anders@dinsen.net>
From: Frederick Bruckman <fb@enteract.com>
List: netbsd-help
Date: 01/02/2000 09:02:17
On Sat, 1 Jan 2000, Anders Dinsen wrote:

> On Thu, 30 Dec 1999, Frederick Bruckman wrote:
> > On Thu, 30 Dec 1999, Anders Dinsen wrote:
> > You might try the cross/binutils package. That will get you gnu ld,
> > at least.
> 
> Ok, I got GNU ld now in /usr/pkg/cross/libexec/binutils/ld, but I cannot
> use it to link my programs just so (I tried recompiling gcc in the hope
> that it would pass the correct parameters to ld, but it does'nt - thats
> why I have'nt asked this before):
> 
> ld says:
> 
> /usr/lib/crt0.o: file not recognized: File format is ambiguous
> /usr/lib/crt0.o: matching formats: a.out-i386-netbsd a.out-hp300bsd
> 
> Do I need cross compiling libraries too? Or can I give an option to ld to
> tell it what the library is? Or what?

".../objdump --target=a.out-i386-netbsd /usr/lib/crt0.o" works; same
as above without the --target arg, so try...

LD='.../ld --format=a.out-i386-netbsd' ...

Oh, and netbsd-help is supposed to be for help installing NetBSD. Best
to follow up on netbsd-users.

Take care