https://sourceware.org/bugzilla/show_bug.cgi?id=26815

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Thiago Macieira from comment #2)
> (In reply to H.J. Lu from comment #1)
> > You can override it with linker options:
> > 
> >   -Bsymbolic                  Bind global references locally
> >   -Bsymbolic-functions        Bind global function references locally
> 
> Those options shouldn't be needed. The protected visibility already implies
> them.
>

GOT relocation is needed for function pointer comparison.

> Either way, the fact that gold and ld.bfd behave different is a problem. And
> so is the fact that passing an empty --dynamic-list file causes it to work.

An empty --dynamic-list file is the same as -Bsymbolic.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to