This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]