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 21:02:02 -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 21:01 -------
(In reply to comment #32)
> The static libraries are being included in the libstc++ archive
> because of a bug in ltconfig. Please try the following patch.
> * ltconfig: Disable building static libraries if building shared
> libraries on AIX 5L.
> Index: ltconfig
After all this, this single line change is ALL that is required to fix the
exception problem.
(In reply to comment #34)
> Subject: Re: AIX: collect2 emits bad code with duplicated symbols
> I believe that the following patch is a more correct fix to
> collect2 unecessarily exporting ctors and dtors. This patch, combined
> with the ltconfig patch, should address the EH problems.
> David
> Index: collect2.c
This patch is not necessary to fix the exception problem.
However it is an optimization on exported symbols and fixes the duplicate
_GLOBAL_* symbol linker warnings.
--
Thank you very much for your help, David.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13391