This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ld: autoselecting bfd based on input objects


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]