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 Mon, Feb 22, 2016 at 10:55 AM, Rafael EspÃndola
<rafael.espindola@gmail.com> wrote:
>> So you want to ask plugin what symbols are defined in an IR
>> file without symbol resolution, similar to AR?
>
> The linker has to ask the plugin which symbols are defined. The symbol
> resolution happens in the linker without plugin involvement.
> The reason AR avoids the problem is that it can simply never call
> all_symbols_read hook, which is not an option for a linker.
>

So you want to add

LDPT_GET_DEFINED_SYMBOLS

to enum ld_plugin_tag, which returns a list of symbols defined
in the IR file.  Am I correct?

-- 
H.J.


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