summaryrefslogtreecommitdiff
path: root/libexec/ld.so/alpha
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2003-03-07 02:06:45 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2003-03-07 02:06:45 +0000
commit9af3fe61833d9048ef8f0b3609498c317012b436 (patch)
tree72fd2674d86542bf96fd344709a9bd2ac173d57d /libexec/ld.so/alpha
parent4f3710b8ad2a325e5d594b9c5a7400513a0a68db (diff)
Fix cut and paste on wrong line bugs, now like other versions. ok miod@
Diffstat (limited to 'libexec/ld.so/alpha')
-rw-r--r--libexec/ld.so/alpha/rtld_machine.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/ld.so/alpha/rtld_machine.c b/libexec/ld.so/alpha/rtld_machine.c
index 41eeb010bdb..1f8f50e4204 100644
--- a/libexec/ld.so/alpha/rtld_machine.c
+++ b/libexec/ld.so/alpha/rtld_machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtld_machine.c,v 1.21 2003/02/15 22:39:13 drahn Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.22 2003/03/07 02:06:44 drahn Exp $ */
/*
* Copyright (c) 1999 Dale Rahn
@@ -312,10 +312,10 @@ _dl_md_reloc_got(elf_object_t *object, int lazy)
pltgot[2] = (Elf_Addr)_dl_bind_start;
pltgot[3] = (Elf_Addr)object;
- if (object->got_addr != NULL && object->got_size != 0)
- _dl_mprotect((void*)object->got_addr, object->got_size,
- PROT_READ|PROT_EXEC);
if (object->got_size != 0)
+ _dl_mprotect((void*)object->got_addr, object->got_size,
+ PROT_READ);
+ if (object->plt_size != 0)
_dl_mprotect((void*)object->plt_start, object->plt_size,
PROT_READ|PROT_EXEC);
}