diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-06-05 19:43:59 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2016-06-05 19:43:59 +0000 |
commit | b0b8ef96f14b84a63fccb1bdb5652c9136a96b98 (patch) | |
tree | 16e612f5153da5e2c80f70892556443b143dacdf /libexec/ld.so | |
parent | 08d49a9404010901609981abe1532607bfa5d942 (diff) |
Avoid W^X violation when setting DT_DEBUG on mips64.
ok deraadt@
Diffstat (limited to 'libexec/ld.so')
-rw-r--r-- | libexec/ld.so/loader.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ld.so/loader.c b/libexec/ld.so/loader.c index 609103d4c53..b0c316fbc17 100644 --- a/libexec/ld.so/loader.c +++ b/libexec/ld.so/loader.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loader.c,v 1.159 2016/05/07 19:05:23 guenther Exp $ */ +/* $OpenBSD: loader.c,v 1.160 2016/06/05 19:43:58 kettenis Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -598,7 +598,7 @@ _dl_boot(const char **argv, char **envp, const long dyn_loff, long *dl_data) #ifdef __mips__ if (dynp->d_tag == DT_DEBUG) _dl_mprotect(map_link, sizeof(*map_link), - PROT_READ|PROT_WRITE|PROT_EXEC); + PROT_READ|PROT_WRITE); #endif *map_link = _dl_debug_map; #ifdef __mips__ |