linker plugin api limitation
H.J. Lu
hjl.tools@gmail.com
Mon Feb 22 19:00:00 GMT 2016
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.
More information about the Binutils
mailing list