Ticket #2818 (closed enhancement: fixed)

Opened 3 months ago

Last modified 3 months ago

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

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

Change History

Changed 3 months ago by romain

Changed 3 months ago by romain

Patch update based on axel's remarks

Changed 3 months ago by axeld

  • status changed from new to closed
  • resolution set to fixed

Thanks for the update! Applied in r28308.

Note: See TracTickets for help on using tickets.