Bug 109889
Summary: | PROBLEM WITH GCC VERSION 3.2 | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 3 | Reporter: | Suhua Ding <suhua.ding> |
Component: | gcc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 3.0 | CC: | riel |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2004-10-07 11:10:50 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Suhua Ding
2003-11-12 18:39:15 UTC
please explain why this is a kernel bug? This is because -fprofile-arcs is only supported for the main application. It will not work as currently implemented for shared libraries. Actually, the primary error is using ld -shared instead of gcc -shared. With that change it links just fine on RHEL3. ld ought to be used directly only when you know exactly what you are doing and take care of all the necessary options/arguments that are needed for successful link. gcc driver knows the details and handles all of it for you. FYI in this case you weren't linking with -lgcc. |