[PATCH v2] Check if gcc complains about __attribute__ (visibility(..))
Mark Wielaard
mark@klomp.org
Sat Aug 19 08:11:00 GMT 2017
On Fri, Aug 18, 2017 at 01:06:36PM +0200, Ulf Hermann wrote:
> If so, define attribute_hidden to be empty. Also, use attribute_hidden
> in all places where we hide symbols. If this attribute is missing, it
> simply means that we cannot hide private symbols in the binary using
> attributes. This disables some optimizations and may increase the risk
> of symbol name clashes with other libraries, but is not fatal.
>
> However, we still employ linker version scripts to explicitly define
> the exported symbols. This serves much of the same purpose. Also, as
> all our symbols are prefixed with the library name, and "__" for
> private ones, the chance of clashes is low anyway.
Like the previous one, I have my doubts. But it actually makes the
source code slightly more consistent. So applied.
Thanks,
Mark
More information about the Elfutils-devel
mailing list