Bug 105386
Summary: | -rdynamic -lc_p result in incorrect libraries being used | ||||||
---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Jason Beardsley <jbeardsley> | ||||
Component: | gcc | Assignee: | Jakub Jelinek <jakub> | ||||
Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 9 | CC: | mitr | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | i686 | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2003-09-26 14:04:33 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: | |||||||
Attachments: |
|
Description
Jason Beardsley
2003-09-25 16:25:12 UTC
Created attachment 94722 [details]
Log showing test case
libc_p is only provided as .a library, not as a shared library. So if you want to profile (other than using oprofile/valgrind etc.), you need to link statically. Linking against both libc_p.a and libc.so is a user bug. You shouldn't link against -lc_p by hand anyway, instead use -profile gcc switch. My application has an embedded Python interpreter, which dynamically loads extension modules at runtime. It cannot be linked statically. So what you are saying is that I cannot profile the program (at least, not fully - I can't link with the profiled C library, but thankfully I am able to use '-pg' to profile my own code). Interesting, because I was able to do just that on RH8, even if this was not the proscribed manner in which to profile using gprof. |