Port to glibc 2.24 (pre-release) + ppc64
commite95b023163e96538b15f030b7176b7ec59cf86f5
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Jul 2016 11:07:09 +0000 (15 13:07 +0200)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 15 Jul 2016 19:27:05 +0000 (15 21:27 +0200)
treec0ad4b151e8740015949c0aa868deaee14dc8582
parent098d29af10a869e65a36804579f16edc49aabcfa
Port to glibc 2.24 (pre-release) + ppc64

Inspired by a suggestion by Florian Weimer in:
https://sourceware.org/ml/libc-alpha/2016-07/msg00425.html
* configure.ac (HAVE_PERSONALITY_ADDR_NO_RANDOMIZE):
Rename from HAVE_PERSONALITY_LINUX32, and check for
ADDR_NO_RANDOMIZE (the crucial thing) instead of for LINUX32.
All uses changed.
* src/emacs.c (main) [HAVE_PERSONALITY_ADDR_NO_RANDOMIZE]:
Use ADDR_NO_RANDOMIZE from personality.h rather than inventing the
flag ourselves.  Just set that flag, rather than also setting the
persona.  When doing it, avoid functions like putenv that may
allocate memory.
admin/CPP-DEFINES
configure.ac
src/emacs.c