summaryrefslogtreecommitdiff
path: root/libexec/ld.so/loader.c
diff options
context:
space:
mode:
Diffstat (limited to 'libexec/ld.so/loader.c')
-rw-r--r--libexec/ld.so/loader.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libexec/ld.so/loader.c b/libexec/ld.so/loader.c
index 62d63237a79..09b6add6275 100644
--- a/libexec/ld.so/loader.c
+++ b/libexec/ld.so/loader.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: loader.c,v 1.104 2006/09/24 21:52:49 kettenis Exp $ */
+/* $OpenBSD: loader.c,v 1.105 2006/11/10 07:44:58 drahn Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -375,6 +375,7 @@ _dl_boot(const char **argv, char **envp, const long loff, long *dl_data)
* now that GOT and PLT has been relocated, and we know
* page size, protect it from modification
*/
+#ifndef RTLD_NO_WXORX
{
extern char *__got_start;
extern char *__got_end;
@@ -396,6 +397,7 @@ _dl_boot(const char **argv, char **envp, const long loff, long *dl_data)
PROT_READ|PROT_EXEC);
#endif
}
+#endif
DL_DEB(("rtld loading: '%s'\n", _dl_progname));