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: "seb at frankengul dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Jun 2007 10:12:38 -0000
- Subject: [Bug middle-end/20218] Can't use __attribute__ ((visibility ("hidden"))) to hide a symbol
- References: <bug-20218-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #52 from seb at frankengul dot org 2007-06-13 10:12 -------
(In reply to comment #51)
> I believe I'm seeing this bug using a redhat build: gcc4.1.1-1 (shows up all
> the way through -51). It's only on 64bit FC5, 32bit is okay and am installing
> FC6 to test. Building XULRunner with --enable-canvas causes the problem,
> greater description of what I'm seeing is in their bugzilla:
> https://bugzilla.mozilla.org/show_bug.cgi?id=367208
>
> Basically a hidden symbol from .o to .a to linking in a .so gives the error
> listed by the reporter here.
>
> I can't tell from the comments which build will carry this patch. It looks like
> it would be in 4.1, but the last comment re: backporting makes me wonder. Also
> I wonder if this patch would have been pulled in to the Redhat build; I'm not
> familiar with the relationship to the main gcc tree.
>
> Thanks!
>
Hi, this backport to gcc-4.1-4.1.2-9 on debian breaks the glibc build on hppa.
The link of librt.so is missing the declaration of symbol
__librt_multiple_threads.
By trial and errors, I located the faulty patch (between -8 and -11) and it
seems to be that one.
See
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=428509
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20218