[Bug 3433] New: FDPIC Crash / ELF_RTYPE_CLASS_DLSYM missing in dlsym()
bugzilla at busybox.net
bugzilla at busybox.net
Mon Mar 7 22:11:51 UTC 2011
https://bugs.busybox.net/show_bug.cgi?id=3433
Summary: FDPIC Crash / ELF_RTYPE_CLASS_DLSYM missing in dlsym()
Product: uClibc
Version: 0.9.32.1
Platform: Other
OS/Version: Linux
Status: NEW
Severity: major
Priority: P5
Component: Shared Library Support
AssignedTo: unassigned at uclibc.org
ReportedBy: mbm at openwrt.org
CC: uclibc-cvs at uclibc.org
Estimated Hours: 0.0
Created attachment 3121
--> https://bugs.busybox.net/attachment.cgi?id=3121
patch to add ELF_RTYPE_CLASS_DLSYM
On FDPIC platforms, functions are passed by function descriptor, not by
pointers. If you don't specify ELF_RTYPE_CLASS_DLSYM when calling
_dl_find_hash() the return value from dlsym() will be a pointer not a function
descriptor, crashing the program.
The bug was introduced when TLS support was added in
534661b91c98492995274c364c8177c45efc63db
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the uClibc-cvs
mailing list