bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: as cross assembler


From: Alan Modra
Subject: Re: as cross assembler
Date: Thu, 07 Aug 2003 22:30:11 +0930
User-agent: Mutt/1.4i

On Thu, Aug 07, 2003 at 05:27:50AM -0700, James Hanley wrote:
> then from each of the elf dirs, do a
> 
> ../binutils-2.14/configure --with-gnu-ld --with-gnu-as \
>        --enable-64-bit-bfd --enable-shared --target=whatever-elf

Yes, this should work OK.  You'll find that the resulting shared libs
will be installed in separate directories.

> Also, why even have the option --enable-targets=something,someelse if it
> only works to setup cross platforms on ld and not as?

"as" is the odd one out.  The other binutils, like nm, readelf, objdump
also offer multiple target support.  It's useful to be able to say
"readelf -a some_object" on my x86 box instead of first finding out that
"some_object" is a powerpc-linux one and thus I need
"powerpc-linux-readelf -a some_object".  On the other hand, even if we
had a multi-target assembler we'd probably need to pass it some flag to
say "assemble for target x".

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre




reply via email to

[Prev in Thread] Current Thread [Next in Thread]