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: Sat, 25 May 2024 14:23:23 +0000

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

--- Comment #16 from mintsuki <mintsuki at protonmail dot com> ---
(In reply to H.J. Lu from comment #15)
> Here is the original discussion:
> 
> https://lore.kernel.org/all/CAMe9rOoJvfJ-
> R3zBwPEcpiULfCdRXPRpayZCaMmXf3k7014izw@mail.gmail.com/T/
> #m2cfa035c82e32ca865ec0f1c352b14470dcc7f39

Okay, thank you. Then this seems like it was done as a hack to get the Linux
kernel to cooperate, from a quick skimming. I do not agree with that change,
but I guess my opinion hardly matters, especially not 10 years after it was
done.

I hope this can be reverted, then, or that a linker flag is added to allow
this, as from all I can gather, this does not go against spec. Especially since
shared objects (non-PIE) can be made with arbitary load addresses.

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