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: linker plugin api limitation


On 1 March 2016 at 21:27, Evgenii Stepanov <eugeni.stepanov@gmail.com> wrote:
> I've sent the fix (get_symbols() returning LDPS_NO_SYMS) to the ML
> recently, but it looks like this is only part of the problem.
>
> I've filed https://llvm.org/bugs/show_bug.cgi?id=26807 with a test
> case for a similar problem where gold incorrectly decides to include
> an input file in the link (and fails even before the first
> get_symbols() call). I'm not sure what's going on at this point.
>

The bug is in gold. It is handling every symbol provided by the plugin
as defined when handling --start-lib/--end-lib members.

Something like the attached patch should fix it.

Cheers,
Rafael

Attachment: t.diff
Description: Text document


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