RFC: 2 choices of DT_XXX for dlmopen
Daniel Walker
danielwa@cisco.com
Mon Aug 9 17:16:53 GMT 2021
On Mon, Aug 09, 2021 at 07:32:26AM -0700, H.J. Lu wrote:
> We need a new DT_XXX to support dlmopen. We have 2 choices:
>
> 1. Similar to DT_DEBUG. Linker will allocate a new DT_XXX and
> ld.so will fill it with the address of the new debug data structure for
> dlmopen.
> 2. Similar to DT_MIPS_RLD_MAP_REL/DT_MIPS_RLD_MAP.
> Linker will allocate a space for a pointer, a new DT_XXX and fill
> the DT_XXX entry with the address of the pointer. ld.so will update
> the pointer with the address of the new debug data structure for
> dlmopen.
>
> #1 is the most straightforward to implement. #2 is compatible with
> the current MIPS implementation.
>
> Does anyone have any preferences?
I have #1 fully implemented already.
Daniel
More information about the Libc-alpha
mailing list