[PATCH] ld.so: Handle read-only dynamic section gracefully [BZ #28340]

Siddhesh Poyarekar siddhesh@sourceware.org
Wed Sep 15 16:24:15 GMT 2021


On 9/15/21 9:43 PM, H.J. Lu via Libc-alpha wrote:
> Can you extract logic from setup_vdso to handle DSOs without
> relocations?

The logic is already in elf_get_dynamic_info; setup_vdso only supplies 
the static temp buffer to store the adjustments.  We could dynamically 
allocate memory for every DSO that has a read-only dynamic segment and 
put the adjustments there, pointing l->l_info pointers to it, but is it 
really necessary?  What's the use case for a DSO with a read-only 
dynamic segment?

Siddhesh


More information about the Libc-alpha mailing list