Ticket #2818 (closed enhancement: fixed)
Add dladdr to libroot
| Reported by: | romain | Owned by: | axeld |
|---|---|---|---|
| Priority: | normal | Milestone: | R1 |
| Component: | System/libroot.so | Version: | R1 development |
| Cc: | Blocked By: | ||
| Platform: | All | Blocking: |
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
Change History
Note: See
TracTickets for help on using
tickets.
