This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/20218] Can't use __attribute__ ((visibility ("hidden"))) to hide a symbol
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Feb 2005 01:24:14 -0000
- Subject: [Bug middle-end/20218] Can't use __attribute__ ((visibility ("hidden"))) to hide a symbol
- References: <20050225230026.20218.hjl@lucon.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-02-26 01:24 -------
Hmm, from the elf spec:
If different visibility attributes are specified for distinct references to or definitions of a symbol, the
most constraining visibility attribute must be propagated to the resolving symbol in the linked object.
The attributes, ordered from least to most constraining, are: STV_PROTECTED, STV_HIDDEN and
STV_INTERNAL.
So is this really a binutils bug and not a gcc one?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218