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: mintsuki at protonmail dot com
Subject: [Bug ld/31795] ld.bfd makes ELFs of type ET_EXEC for static PIEs when load address is non-0
Date: Tue, 28 May 2024 16:27:46 +0000

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

--- Comment #62 from mintsuki <mintsuki at protonmail dot com> ---
(In reply to Adhemerval Zanella from comment #60)
> (In reply to mintsuki from comment #59)
> > (In reply to Adhemerval Zanella from comment #58)
> > > (In reply to mintsuki from comment #41)
> 
> > > So maybe we either enable this iff targeting Linux, or check if kernel is
> > > willing to enforce e_entry even for DYN. 
> > > 
> > > I am not sure if the correct approach is relaxing the
> > > '-Ttext-segment/--image-base' to be a minimum address.  For this, I would
> > > add another linker option.
> > 
> > I am not sure what you mean with "willing to enforce e_entry".
> 
> I meant enforcing the vaddr set by e_entry for ET_DYN (and thus disabling
> ASLR), so this hack won't be necessary for Linux.

Ah, I see. Makes sense.

-- 
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]