Bug 64042
Summary: | dlsym open symbols from dependency libraries | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Joe Krahn <krahn> |
Component: | glibc | Assignee: | Jakub Jelinek <jakub> |
Status: | CLOSED NOTABUG | QA Contact: | Brian Brock <bbrock> |
Severity: | low | Docs Contact: | |
Priority: | medium | ||
Version: | 7.2 | CC: | fweimer |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-12-15 20:02:06 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
Joe Krahn
2002-04-24 11:47:24 UTC
Checking some docs from LSB, dlopen is supposed load dependency libraries, but it never defines whether dlsym should return symbols from those dependency libraries. So that could be just a feature that differs by OS. The problem that does exist is that objects opened with RTLD_LOCAL are globally available, so you get the same result as when using RTLD_GLOBAL. This doesn't interefere with typical dlopen usage, so it's only a minor problem. I think this is NOTABUG. I checked and found that RTLD_GLOBAL/LOCAL differences work OK. Availability of symbols in dependent objects is different from IRIX, but I think IRIX is wrong. However, it would be helpful to explain this in the man page. Here's an example from the HP dlsym manpage that agrees w/ Linux: dlsym searches for the named symbol in all shared objects loaded automatically as a result of loading the object referenced by handle (see dlopen(3c)). |