[ppc32]: LEA() incompatible with secure_plt
Felix Janda
felix.janda at posteo.de
Sat Nov 1 12:47:58 UTC 2014
Hello,
LEA() in mpn/powerpc32/elf.m4 uses an idiom to obtain a pointer to the
GOT which is incompatible with the newer secure_plt linking model for
powerpc and makes binutils fall back to the older bss-plt (with rwx
PLT and GOT). See
http://sources.redhat.com/ml/binutils/2005-05/msg00391.html
http://www.sourceware.org/ml/binutils/2005-05/txt00011.txt
The attached patch (should still apply to the current version) uses
the idea from the second link to make LEA() work without an executable
GOT.
Felix
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gmp-5.1.3-secure-plt.patch
Type: text/x-patch
Size: 416 bytes
Desc: not available
URL: <https://gmplib.org/list-archives/gmp-bugs/attachments/20141101/f070ce48/attachment.bin>
More information about the gmp-bugs
mailing list