Define DEFAULT_STACK_PERMS for MIPS.

This commit is contained in:
Joseph Myers 2010-12-21 00:40:13 +00:00
parent 7f3c9dd2cc
commit 390651fd1d
2 changed files with 11 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2010-12-21 Joseph Myers <joseph@codesourcery.com>
* sysdeps/mips/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
2010-12-06 Matt Turner <mattst88@gmail.com>
* sysdeps/unix/sysv/linux/mips/getpagesize.c: Delete file.

View File

@ -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 <elf.h>
/* 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 */