[Bug target/13391] AIX: collect2 emits bad code with duplicated symbols

ajd at gentrack dot com gcc-bugzilla@gcc.gnu.org
Thu Mar 4 21:02:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list