Thread (3 messages) 3 messages, 3 authors, 2018-10-31

Re: PIE binaries are no longer mapped below 4 GiB on ppc64le

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Date: 2018-10-31 22:24:45
Also in: linux-mm

Possibly related (same subject, not in this thread)

On Wed, 2018-10-31 at 18:54 +0100, Florian Weimer wrote:
It would matter to C code which returns the address of a global variable
in the main program through and (implicit) int return value.

The old behavior hid some pointer truncation issues.
Hiding bugs like that is never a good idea..
quoted
Maybe it would be good idea to generate 64bit relocations on 64bit
targets?
Yes, the Go toolchain definitely needs fixing for PIE.  I don't dispute
that.
There was never any ABI guarantee that programs would be loaded below
4G... it just *happened*, so that's not per-se an ABI change.

That said, I'm surprised of the choice of address.. I would have rather
moved to above 1TB to benefit from 1T segments...

Nick, Anton, do you know anything about that change ?

Ben.

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help