When __attribute__ ((visibility ("hidden"))) is used to hide/optimize a symbol, foo, defined in another .o/archive file, foo isn't marked as hidden. As the result, I get either runtime or linktime error.
-- Summary: Can't use __attribute__ ((visibility ("hidden"))) to hide a symbol Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: middle-end AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: hjl at lucon dot org CC: gcc-bugs at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218