[PATCH] ld.so: Handle read-only dynamic section gracefully [BZ #28340]
Siddhesh Poyarekar
siddhesh@sourceware.org
Fri Sep 17 02:58:15 GMT 2021
On 9/16/21 11:33 PM, Florian Weimer wrote:
> * H. J. Lu:
>
>> No. Relocation of vDSO dynamic section is done by elf_get_dynamic_info.
>> Here is a patch to remove the hack for vDSO.
>
> I have concerns that this does not actually work on MIPS. What happens
> if the object has a single RWX LOAD segment? What kind of flags will
> the link editor set on the DYNAMIC segment in this case? RWX or R, RX?
> I suspect it will be RWX, which means that we actually need the special
> case.
The DYNAMIC segment flags will be based on .dynamic, which is read-only
for MIPS.
Siddhesh
More information about the Libc-alpha
mailing list