https://sourceware.org/bugzilla/show_bug.cgi?id=31795
--- Comment #53 from mintsuki <mintsuki at protonmail dot com> --- (In reply to H.J. Lu from comment #51) > (In reply to mintsuki from comment #50) > > > > Why can't you check DF_1_PIE for PIE? > > > > That is what I do now, but to check for *relocatability*. PIE in and of > > itself is not something that tells me whether I should relocate (for KASLR > > for example) or not. That is what you just said. > > If DF_1_PIE is set, the binary can be relocated to any address. What did I > miss? This? : > > > > Earlier you said I should check DF_1_PIE to determine relocatability... > > > > so > > > > > > No, that was not what I said. DF_1_PIE can be used to determine if a > > > binary > > > is PIE. You said setting the text segment base address to non-0 means the load address has to be the one specified, due to the ELF type being forced to ET_EXEC by your linker; thus you *cannot* relocate it to any address. Linux *does not* relocate it, in fact, and ASLR is not done. -- You are receiving this mail because: You are on the CC list for the bug.