]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define DEFAULT_STACK_PERMS for ARM.
authorJoseph Myers <joseph@codesourcery.com>
Tue, 21 Dec 2010 00:39:39 +0000 (00:39 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Tue, 21 Dec 2010 00:39:39 +0000 (00:39 +0000)
ChangeLog.arm
sysdeps/arm/stackinfo.h

index 693d1e7ff78791daf0514aaf26bb6f39f63b3278..d02f269593f6dc5e46f86e9cbf27cdec83c0b344 100644 (file)
@@ -1,3 +1,7 @@
+2010-12-21  Joseph Myers  <joseph@codesourcery.com>
+
+       * sysdeps/arm/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
+
 2010-11-24  Ken Werner  <ken.werner@de.ibm.com>
 
        * sysdeps/unix/sysv/linux/arm/nptl/bits/atomic.h (atomic_full_barrier,
index 2410ba9bd99132594f293e90393e82aac4abe995..3f94ddf3d9fe9206f96e854e68847429d54e522d 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001 Free Software Foundation, Inc.
+/* Copyright (C) 2001, 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
 #ifndef _STACKINFO_H
 #define _STACKINFO_H   1
 
+#include <elf.h>
+
 /* On Arm 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)
+
 #endif /* stackinfo.h */