[Bug middle-end/20218] Can't use __attribute__ ((visibility ("hidden"))) to hide a symbol

jakub at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Mon Feb 28 21:38:00 GMT 2005

------- Additional Comments From jakub at gcc dot gnu dot org  2005-02-28 14:49 -------
.hidden is intentionally emitted only at the definitions, not for the undefs.
Otherwise a header with 1000 prototypes with __attribute__((visibility
("hidden"))) would result in 1000 STV_HIDDEN SHN_UNDEF symbols, even when they
aren't used at all in the file at all.



More information about the Gcc-bugs mailing list