This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Differences between versions 2.95 & 2.8.1 when using Purify with dynamic libraries
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Differences between versions 2.95 & 2.8.1 when using Purify with dynamic libraries
- From: Equity Administrator <ghost at csfb dot co dot jp>
- Date: Thu, 24 Aug 2000 12:14:14 +0800
- Reply-To: mikhail dot routchiev at csfb dot com
Hi,
It may not be bug in GCC, however there is some strange inconsistency when using GNU 2.95.2 Solaris 2.5.1 compiled modules (in particular, dynamic libraries) with 4.1 or 5.1 Purify. After Purifying the program application starts crashing whenever it attempts to access global objects allocated in dynamic libraries.
It happens with GNU linker 2.9.1 as well as with /usr/ccs/bin/ld Sun linker.
There is no problem with GCC 2.8.1 or earlier versions. So probably this problem was introduced in one of the versions GCC 2.9x (when generating code -fPIC or -fpic). If same dynamic librares are compiled & linked as static, then Purifed binary stops crashing in this library & problem moves to other dynamic library. Eventually it reapperes somewhere in libc..., which effectively makes Purify unusable.
GNU Checker ("GNU Purify") also fails to link dynamic libraries.
Just wondering if anyone has ever experiences something similar before.
Thank you,
--
Routchiev Mikhail