[ppc32]: LEA() incompatible with secure_plt

tg at gmplib.org tg at gmplib.org
Tue May 12 08:02:42 UTC 2015


Felix Janda <felix.janda at posteo.de> writes:

  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.
  
Sorry for the slow reply.

We'll take care of this for the next GMP release.  Thanks for letting us
know about this ABI change!

-- 
Torbjörn
Please encrypt, key id 0xC8601622


More information about the gmp-bugs mailing list