On Fri, Oct 23, 2015 at 1:52 AM, Richard Biener
<richard.guent...@gmail.com> wrote:
> On Thu, Oct 22, 2015 at 7:09 PM, H.J. Lu <hjl.to...@gmail.com> wrote:
>> When -Bsymbolic is passed to linker, references to global symbols
>> defined in the shared library are resolved locally.  We should pass
>> -fsymbolic to GCC in this case.
>
> Hmm, I think this info should come via the linker plugin, otherwise it
> won't work
> with using plain 'ld' for linking and plugin auto-loading for example.  Maybe
> a special symbol resultion can be used for this?
>

If we do this, change may be very intrusive.  For each defined enum
in ld_plugin_symbol_resolution, we may need another one to indicate
that the definition will be bound symbolically into the shared library for
-Bsymbolic.

-- 
H.J.

Reply via email to