This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug driver/17608] New: [3.3.4/3.4/4.0 regression] -profile should prevent use of libgcc_s
- From: "schwab at suse dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Sep 2004 12:35:31 -0000
- Subject: [Bug driver/17608] New: [3.3.4/3.4/4.0 regression] -profile should prevent use of libgcc_s
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
When linking with -profile then -lc_p is used instead of -lc, and the former is
only available as a static library. Thus this should be treated like a static
link, and no shared libgcc should be linked in. But when HAVE_LD_AS_NEEDED
then -lgcc_s is also being linked in by default, causing a shared link that
uses both libc_p and libc, and the resulting binary will crash.
--
Summary: [3.3.4/3.4/4.0 regression] -profile should prevent use
of libgcc_s
Product: gcc
Version: 3.3.4
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: driver
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: schwab at suse dot de
CC: amodra at bigpond dot net dot au,gcc-bugs at gcc dot gnu
dot org,jakub at redhat dot com
GCC target triplet: ia64-suse-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17608