diff options
author | John Marino <gnugcc@marino.st> | 2014-05-21 11:08:58 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2014-05-21 12:08:58 +0100 |
commit | dbed5a9bffce4f2c875abc4f9f502ed339aa0ae0 (patch) | |
tree | 03facded16790b6c727201147904c9c4862b73cc /libgcc/enable-execute-stack-mprotect.c | |
parent | 17cf9038e10e7b5249645d22621287ffb8280143 (diff) | |
download | gcc-dbed5a9bffce4f2c875abc4f9f502ed339aa0ae0.zip gcc-dbed5a9bffce4f2c875abc4f9f502ed339aa0ae0.tar.gz gcc-dbed5a9bffce4f2c875abc4f9f502ed339aa0ae0.tar.bz2 |
config.gcc (*-*-dragonfly*): New target.
2014-05-21 John Marino <gnugcc@marino.st>
gcc:
* config.gcc (*-*-dragonfly*): New target.
* configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
* configure: Regenerate.
* config/dragonfly-stdint.h: New.
* config/dragonfly.h: New.
* config/dragonfly.opt: New.
* config/i386/dragonfly.h: New.
* ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
include:
* liberty.h: Use basename function on DragonFly.
libcilkrts:
* runtime/os-unix.c (__DragonFly__): New target.
libgcc:
* config.host (*-*-dragonfly*): New target.
* crtstuff.c: Make dl_iterate_support generic on *bsd.
* enable-execute-stack-mprotect.c: Always mprotect on FreeBSD.
* unwind-dw2-fde-dip.c: Add dl_iterate_phr support for DragonFly.
* config/i386/dragonfly-unwind.h: New.
libitm:
* configure.tgt (*-*-dragonfly*): New target.
libstdc++-v3:
* acinclude.m4 (*-*-dragonfly*): New target.
* configure: Regenerate.
* configure.host (*-*-dragonfly*): New target.
* config/locale/dragonfly/c_locale.cc: New.
* config/locale/dragonfly/ctype_members.cc: New.
* config/os/bsd/dragonfly/ctype_base.h: New.
* config/os/bsd/dragonfly/ctype_configure_char.cc: New.
* config/os/bsd/dragonfly/ctype_inline.h: New.
* config/os/bsd/dragonfly/os_defines.h: New.
From-SVN: r210694
Diffstat (limited to 'libgcc/enable-execute-stack-mprotect.c')
-rw-r--r-- | libgcc/enable-execute-stack-mprotect.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/libgcc/enable-execute-stack-mprotect.c b/libgcc/enable-execute-stack-mprotect.c index 096abea..e3fb3b6 100644 --- a/libgcc/enable-execute-stack-mprotect.c +++ b/libgcc/enable-execute-stack-mprotect.c @@ -33,20 +33,7 @@ static int need_enable_exec_stack; static void check_enabling (void) __attribute__ ((unused)); extern void __enable_execute_stack (void *); -#if defined __FreeBSD__ -#include <sys/sysctl.h> - -static void __attribute__ ((constructor)) -check_enabling (void) -{ - int prot = 0; - size_t len = sizeof (prot); - - sysctlbyname ("kern.stackprot", &prot, &len, NULL, 0); - if (prot != STACK_PROT_RWX) - need_enable_exec_stack = 1; -} -#elif defined __sun__ && defined __svr4__ +#if defined __sun__ && defined __svr4__ static void __attribute__ ((constructor)) check_enabling (void) { |