Pass the elf object of the archive files to a linker plugin's claim file handler

Sriraman Tallam
Sat Mar 30 01:04:00 GMT 2013

This patch is now submitted.


On Fri, Mar 29, 2013 at 5:54 PM, Ian Lance Taylor <> wrote:
> On Fri, Mar 29, 2013 at 5:29 PM, Sriraman Tallam <> wrote:
>>    Currently, the elf object of archive files is not passed to a
>> linker plugin's claim file handler.  This means APIs like
>> get_section_count will not work on archive files.  The following patch
>> fixes this by creating an elf object for archive files before the
>> plugin's claim file handler is invoked.  If the plugin claims the file
>> then the elf object is deleted.  This is similar to how regular
>> objects are handled in
> This is OK with a ChangeLog entry.
> Thanks.
> Ian

More information about the Binutils mailing list