diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2004-05-24 20:16:13 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2004-05-24 20:16:13 +0000 |
commit | 6f87c994e188c5ccef743be390012f0dc3392e83 (patch) | |
tree | 80c189352073c3b3686bbec19bebb0085aaf923c /libexec/ld.so/loader.c | |
parent | 9d6daec549bf5305311f797a90baec7338ba9c88 (diff) |
Change define used to deal with PLT protection, use postive logic not negative.
ok mickey@
Diffstat (limited to 'libexec/ld.so/loader.c')
-rw-r--r-- | libexec/ld.so/loader.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/loader.c b/libexec/ld.so/loader.c index 88e20cf13e2..fc07883d129 100644 --- a/libexec/ld.so/loader.c +++ b/libexec/ld.so/loader.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loader.c,v 1.73 2004/02/23 20:47:39 drahn Exp $ */ +/* $OpenBSD: loader.c,v 1.74 2004/05/24 20:16:12 drahn Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -208,7 +208,7 @@ _dl_boot(const char **argv, char **envp, const long loff, long *dl_data) { extern char *__got_start; extern char *__got_end; -#ifndef RTLD_TEXT_PLT +#ifdef RTLD_PROTECT_PLT extern char *__plt_start; extern char *__plt_end; #endif @@ -218,7 +218,7 @@ _dl_boot(const char **argv, char **envp, const long loff, long *dl_data) ELF_TRUNC((long)&__got_start, _dl_pagesz), GOT_PERMS); -#ifndef RTLD_TEXT_PLT +#ifdef RTLD_PROTECT_PLT /* only for DATA_PLT or BSS_PLT */ _dl_mprotect((void *)ELF_TRUNC((long)&__plt_start, _dl_pagesz), ELF_ROUND((long)&__plt_end,_dl_pagesz) - |