Check if gcc complains about __attribute__ (visibility(..))
authorUlf Hermann <ulf.hermann@qt.io>
Fri, 18 Aug 2017 11:06:36 +0000 (13:06 +0200)
committerMark Wielaard <mark@klomp.org>
Fri, 18 Aug 2017 20:32:44 +0000 (22:32 +0200)
commit1127470a3ebf507981af5d2864bfe57ee67e868a
treeddc7c4eb260bdb5cc677d7af958618f5a779d0ae
parent07737584e73714eff3481fcf17f9f0331c8a5b88
Check if gcc complains about __attribute__ (visibility(..))

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.

Signed-off-by: Ulf Hermann <ulf.hermann@qt.io>
ChangeLog
configure.ac
lib/ChangeLog
lib/eu-config.h
libdw/ChangeLog
libdw/libdwP.h
libdw/libdw_alloc.c
libelf/ChangeLog
libelf/libelfP.h