diff options
author | Ryan S. Arnold <rsa@us.ibm.com> | 2010-12-19 22:49:01 -0500 |
---|---|---|
committer | Ulrich Drepper <drepper@gmail.com> | 2010-12-19 22:49:01 -0500 |
commit | 30950a5fd2346c43ba4fc59c16f122cfb59f9629 (patch) | |
tree | 400aceac60bdb17ec66caf2850d173ad8554e135 /sysdeps/x86_64/stackinfo.h | |
parent | db753e2cfb2051ebf20dc089f87c5b1297cc2cff (diff) | |
download | glibc-30950a5fd2346c43ba4fc59c16f122cfb59f9629.tar.gz glibc-30950a5fd2346c43ba4fc59c16f122cfb59f9629.tar.xz glibc-30950a5fd2346c43ba4fc59c16f122cfb59f9629.zip |
Make PowerPC64 default to nonexecutable stack
Diffstat (limited to 'sysdeps/x86_64/stackinfo.h')
-rw-r--r-- | sysdeps/x86_64/stackinfo.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sysdeps/x86_64/stackinfo.h b/sysdeps/x86_64/stackinfo.h index b11849d9ab..d4fc25f457 100644 --- a/sysdeps/x86_64/stackinfo.h +++ b/sysdeps/x86_64/stackinfo.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2001, 2009 Free Software Foundation, Inc. +/* Copyright (C) 2001, 2009, 2010 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -22,9 +22,15 @@ #ifndef _STACKINFO_H #define _STACKINFO_H 1 +#include <elf.h> + /* On x86_64 the stack grows down. */ #define _STACK_GROWS_DOWN 1 +/* Default to an executable stack. PF_X can be overridden if PT_GNU_STACK is + * present, but it is presumed absent. */ +#define DEFAULT_STACK_PERMS (PF_R|PF_W|PF_X) + /* Access to the stack pointer. The macros are used in alloca_account for which they need to act as barriers as well, hence the additional (unnecessary) parameters. */ |