|
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 13:53:26 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=31795 H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceware.org/bugz | |illa/show_bug.cgi?id=31799 Status|REOPENED |RESOLVED Resolution|--- |FIXED --- Comment #20 from H.J. Lu <hjl.tools at gmail dot com> --- It turns out that static PIE with non-zero load address must have ET_EXEC: https://sourceware.org/bugzilla/show_bug.cgi?id=31799 Otherwise, there is no way for loader to tell if the dynamic section entries contain the relocated values for the load address or not. Since static PIE with non-zero load address must have ET_EXEC, PIE with non-zero load address also should have ET_EXEC. BTW, gold doesn't support static PIE and static PIE with non-zero load address generated by lld crashes with the fix glibc. -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |