ld won't complain if asked to link obj files of different arches

Alan Modra amodra@bigpond.net.au
Thu Dec 19 06:40:00 GMT 2002


On Thu, Dec 19, 2002 at 11:31:14AM +0000, Nick Clifton wrote:
>   % ld foo.o -b binary unknown_arch.o
> 
> it will produce a warning message, but the link works:
> 
>   ld: warning: unknown architecture of input file `unknown_arch.o' is incompatible with i386 output

It would be nice if this worked without a warning.  What is the
"architecture" of a binary input file anyway?

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list