bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/31795] ld.bfd makes ELFs of type ET_EXEC for static PIEs when lo


From: hjl.tools at gmail dot com
Subject: [Bug ld/31795] ld.bfd makes ELFs of type ET_EXEC for static PIEs when load address is non-0
Date: Sun, 26 May 2024 14:54:34 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=31795

--- Comment #31 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to mintsuki from comment #30)
> Basically, it tries to find a PHDR which contains the RELA section, and if
> it find it, it subtracts the PHDR's virtual address and adds its offset in
> order to find the offset of the RELA section inside the ELF file itself.

In glibc, we know it is a static PIE.  We relocate PT_DYNAMIC segment only if
it is ET_DYN.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]