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)

20081011-dladdr.diff (2.6 KB ) - added by romain 16 years ago.
20081022-dladdr.diff (2.5 KB ) - added by romain 16 years ago.
Patch update based on axel's remarks

Download all attachments as: .zip

Change History (3)

by romain, 16 years ago

Attachment: 20081011-dladdr.diff added

by romain, 16 years ago

Attachment: 20081022-dladdr.diff added

Patch update based on axel's remarks

comment:1 by axeld, 16 years ago

Resolution: fixed
Status: newclosed

Thanks for the update! Applied in hrev28308.

Note: See TracTickets for help on using tickets.