Opened 16 years ago
Closed 16 years ago
#2818 closed enhancement (fixed)
Add dladdr to libroot
Reported by: | romain | Owned by: | axeld |
---|---|---|---|
Priority: | normal | Milestone: | R1 |
Component: | System/libroot.so | Version: | R1/pre-alpha1 |
Keywords: | Cc: | ||
Blocked By: | Blocking: | ||
Platform: | All |
Description
Revision 27972
The enclosed patch adds "dladdr". function. dladdr is a gnu extension to the "dl*" posix apis.
I tried to respect coding guidelines, but it may not be fully compliant.
The enclosed patch is not thread safe due to the 2 static variables. However I did not find another solution to fill the Dl_info structure without this. The only other way I see would require modifications in the runtime loader so that we get pointer to the elf object himself, and not copies.
Implementation is heavily inspired from the netbsd one.
Attachments (2)
Change History (3)
by , 16 years ago
Attachment: | 20081011-dladdr.diff added |
---|
by , 16 years ago
Attachment: | 20081022-dladdr.diff added |
---|
comment:1 by , 16 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for the update! Applied in hrev28308.
Note:
See TracTickets
for help on using tickets.
Patch update based on axel's remarks