This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] Skipping of incompatible linker scripts in search path
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: Jakub Jelinek <jakub at redhat dot com>
- Cc: binutils at sources dot redhat dot com, roland at redhat dot com
- Date: Thu, 10 Oct 2002 13:26:14 +0930
- Subject: Re: [PATCH] Skipping of incompatible linker scripts in search path
- References: <20021010011944.U3451@sunsite.ms.mff.cuni.cz>
On Thu, Oct 10, 2002 at 01:19:44AM +0200, Jakub Jelinek wrote:
> Ie. say IA-32 /usr/lib/libc.so would contain:
> OUTPUT_FORMAT ( elf32-i386 )
> GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )
I'd rather some other scheme, if at all possible, because it would be
nice to build a biarch linker that automatically selected output arch
depending on input. There is code in ld to do that (whether it works
or not I can't say), but it is overridden by OUTPUT_FORMAT in scripts.
So if we got rid of all OUTPUT_FORMAT statements in scripts it might
be possible to dipense with -m arch on ld command line.
--
Alan Modra
IBM OzLabs - Linux Technology Centre