diff options
author | Ryan Arnold <ryanarn@etna.rchland.ibm.com> | 2010-11-01 15:38:51 -0500 |
---|---|---|
committer | Ryan Arnold <ryanarn@etna.rchland.ibm.com> | 2010-11-01 15:38:51 -0500 |
commit | ac02cf3af6f46706a29f21fc762f7099a7a546cc (patch) | |
tree | 24db7cec0b9a210d3c7c80716b295a35bd91e720 /ChangeLog | |
parent | fbe0f55169e6ce50fd2eef1a84f64bbe7aa0592d (diff) | |
download | glibc-ac02cf3af6f46706a29f21fc762f7099a7a546cc.tar.gz glibc-ac02cf3af6f46706a29f21fc762f7099a7a546cc.tar.xz glibc-ac02cf3af6f46706a29f21fc762f7099a7a546cc.zip |
PowerPC64 doesn't need an executable stack and therefore doesn't need
PT_GNU_STACK to make the stack no-exec. This change abstracts the stack permissions settings into a macro defined in a header.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index dd1cbecc0c..93f6ed4ec9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,35 @@ +2010-10-26 Ryan S. Arnold <rsa@us.ibm.com> + + * config.h.in: Added HAVE_PPC64_PT_GNU_STACK which is set during a + configure test to determine whether the the $(CC) compiler defaults to + PT_GNU_STACK support for PPC64. + * elf/Makefile (($objpfx)check-execstac:): Replaced $(native-compile) + with an operation which does the same thing but searches sysdeps/ for + the testcase before settling on elf/check-execstack.c. This allows + overriding in sysdeps/powerpc/powerpc64/check-execstack.c. + * elf/dl-load.c (_dl_map_object_from_fd): Replace PF_R|RF_W|PF_X with + _STACK_FLAGS, defined in stackinfo.h. + * elf/dl-support.c (_dl_stack_flags): Likewise. + * elf/rtld.c (_rtld_global): Likewise. + * sysdeps/generic/stackinfo.h: Define _STACK_FLAGS = PF_R|PF_W|PF_X. + Define _STACKINFO_H. + * sysdeps/i386/stackinfo.h: Include <sysdeps/generic/stackinfo.h> and + remove #define _STACKINFO_H. + * sysdeps/ia64/stackinfo.h: Likewise. + * sysdeps/s390/stackinfo.h: Likewise. + * sysdeps/sh/stackinfo.h: Likewise. + * sysdeps/sparc/stackinfo.h: Likewise. + * sysdeps/x86_64/stackinfo.h: Likewise. + * sysdeps/powerpc/stackinfo.h: Define _STACK_FLAGS as PF_R|PF_W, i.e., + nonexecutable, on PowerPC64, but PF_R|PF_W|PF_X on PowerPC32. + * sysdeps/powerpc/powerpc64/check-execstack.c: New file which checks + the test executable to make sure it doesn't have PT_GNU_STACK set and + then checks the executable to see if the mapfile indicates that + the [stack] is nonexecutable. + * sysdeps/powerpc/powerpc64/configure: Regenerated. + * sysdeps/powerpc/powerpc64/configure.in: Added fragment to test for + PT_GNU_STACK default in the compiler. It sets HAVE_PPC64_PT_GNU_STACK. + 2010-10-16 Jakub Jelinek <jakub@redhat.com> [BZ #3268] |