This is the mail archive of the
mailing list for the binutils project.
Re: .hidden overrides .symver?
On Mon, Nov 21, 2016 at 12:47:47PM +0100, Florian Weimer wrote:
> On 11/21/2016 05:01 AM, Alan Modra wrote:
> >So yes, a mere reference with hidden visibility must result in the
> >final linked symbol being hidden (or internal if other refs/defs are
> >internal), and hidden symbols must be converted to local or removed.
> Thanks for confirming that this is expected behavior. I think we should
> clarify this in the GCC documentation (and we have to clean up a few bits in
> the glibc documentation).
> Would it be possible to add an ld warning if a hidden reference makes a
> previously public symbol non-exported?
Yes, such a thing would be possible. Perhaps as debug output similar
to glibc's ld.so LD_DEBUG output. I'm a little too busy at the moment
to implement it myself..
Australia Development Lab, IBM