From 390651fd1d0220b5f07eedefee71a64b81bff7a0 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Tue, 21 Dec 2010 00:40:13 +0000 Subject: [PATCH] Define DEFAULT_STACK_PERMS for MIPS. --- ChangeLog.mips | 4 ++++ sysdeps/mips/stackinfo.h | 8 +++++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog.mips b/ChangeLog.mips index d7965e9..a52a7fd 100644 --- a/ChangeLog.mips +++ b/ChangeLog.mips @@ -1,3 +1,7 @@ +2010-12-21 Joseph Myers + + * sysdeps/mips/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X. + 2010-12-06 Matt Turner * sysdeps/unix/sysv/linux/mips/getpagesize.c: Delete file. diff --git a/sysdeps/mips/stackinfo.h b/sysdeps/mips/stackinfo.h index 86e3d62..7a5e3e0 100644 --- a/sysdeps/mips/stackinfo.h +++ b/sysdeps/mips/stackinfo.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2000 Free Software Foundation, Inc. +/* Copyright (C) 2000, 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,7 +22,13 @@ #ifndef _STACKINFO_H #define _STACKINFO_H 1 +#include + /* On MIPS 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 */ -- 2.7.4