PowerPC64 DT_RELR

Alan Modra amodra@gmail.com
Sat Jan 22 04:28:26 GMT 2022


On Wed, Jan 19, 2022 at 02:56:07PM -0800, H.J. Lu wrote:
> Does PowerPC64 support static PIE?  If yes, it may need more linker changes.

No.  There are things in glibc that need fixing.  We have small-model
toc relocs being used in assembly.  This results in the linker
refusing to do toc/got indirect to toc pointer relative code
optimisation for those sequences.  So we get toc/got entries with
relative relocations that result in segfaults when static-pie binaries
are trying to relocate themselves.

What were the linker changes you thought would be necessary?

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list