This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: ld: autoselecting bfd based on input objects
- From: Daniel Jacobowitz <drow at false dot org>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: Binutils <binutils at sourceware dot org>
- Date: Wed, 23 Apr 2008 15:05:54 -0400
- Subject: Re: ld: autoselecting bfd based on input objects
- References: <200804231454.36960.vapier@gentoo.org>
On Wed, Apr 23, 2008 at 02:54:36PM -0400, Mike Frysinger wrote:
> from looking at a few targets, i dont think anyone does this, or i just missed
> it. is it possible for ld to check the incoming elf objects and select an
> appropriate bfd target before it's too late ? in the Blackfin case, we
> distinguish object formats using ELF flags, so we know which bfd is
> appropriate as soon as we read the ELF header ...
I had a lot of trouble trying to do this. As far as I can tell the
answer is no; it's a pity merge_private_data is done after
check_relocs, though it's probably faster this way.
--
Daniel Jacobowitz
CodeSourcery