This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/13391] AIX: collect2 emits bad code with duplicated symbols
- From: "ajd at gentrack dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Mar 2004 00:00:35 -0000
- Subject: [Bug target/13391] AIX: collect2 emits bad code with duplicated symbols
- References: <20031212191310.13391.greed@pobox.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ajd at gentrack dot com 2004-03-04 00:00 -------
(In reply to comment #16)
> Can you try the appended patch that disables exporting _GLOBAL_*
> symbols in AIX shared libraries?
> Thanks, David
David,
I have not done a full bootstrap and I am still testing, so treat these as
prelimary findings:
The patch appears not to fix the abort on try/catch.
However with the patch, I am not getting imports of __GLOBAL__F* from
libstdc++ into my shared library. So maybe it is a fix to part of the problem?
I'm not sure if the original problem is that the libstdc++ library exports the
__GLOBAL__F symbols or that the user library imports and uses them?
In the patch, should it be checking the variable shared_obj or is_shared?
I think that it would depend where you class the problem: shared_obj to fix
libstdc++, is_shared to fix user library.
Thanks for your help.
I will update again when I feel I have properly tested the patch.
Regards,
Andrew.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13391