This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH] gold/arm: define $a/$d markers in .plt
David Miller <firstname.lastname@example.org> writes:
> GOLD downgrades a protected symbol from STB_GLOBAL to STB_LOCAL in the
> final link, which I've not seen the BFD linker do.
It does? That doesn't sound right. It would make protected symbols
useless in shared libraries. I don't see it happening in, e.g.,
protected_1.so in the testsuite. Where do you see that?
Symbols with hidden and internal visibility are forced to STB_LOCAL in a
final link, but not protected symbols. Gold does that because that is
what the ELF ABI specifies should happen.