Opened 11 years ago

Closed 10 years ago

#2818 closed enhancement (fixed)

Add dladdr to libroot

Reported by: romain Owned by: axeld
Priority: normal Milestone: R1
Component: System/ Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: All


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 11 years ago.
20081022-dladdr.diff (2.5 KB) - added by romain 10 years ago.
Patch update based on axel's remarks

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by romain

Attachment: 20081011-dladdr.diff added

Changed 10 years ago by romain

Attachment: 20081022-dladdr.diff added

Patch update based on axel's remarks

comment:1 Changed 10 years ago by axeld

Resolution: fixed
Status: newclosed

Thanks for the update! Applied in hrev28308.

Note: See TracTickets for help on using tickets.