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 04:16:01 -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 04:16 -------
(In reply to comment #23)
> Subject: Re: AIX: collect2 emits bad code with duplicated symbols
> >>>>> ajd at gentrack dot com writes:
> ajd> I have done a full bootstrap.
> ajd> I can confirm that this patch (in comment 16) does NOT fix the exception
> ajd> problem.
> ajd> My testcase still aborts.
> Please make sure that you run AIX command slibclean to clear out
> the old version of the shared libraries before testing.
> Thanks, David
Did that:
$ g++ -fPIC -dPIC -shared -o liba2.a a2.cpp
$ g++ -fPIC -dPIC -o a1 -L. -la2 a1.cpp
$ g++ -fPIC -dPIC -shared -o libb2.a a2.cpp
$ g++ -fPIC -dPIC -o b1 -L. -lb2 a1.cpp
$ g++ -fPIC -dPIC -shared -o libc2.a a2.cpp
$ g++ -fPIC -dPIC -o c1 -L. -lc2 a1.cpp
$ g++ -fPIC -dPIC -shared -o libd2.a a2.cpp
$ g++ -fPIC -dPIC -o d1 -L. -ld2 a1.cpp
$ su -c slibclean
root's Password:
$ ./a1
$ ./b1
$ ./c1
IOT/Abort trap (core dumped)
$ ./d1
IOT/Abort trap (core dumped)
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13391