summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libexec/ld.so/alpha/rtld_machine.c4
-rw-r--r--libexec/ld.so/arm/rtld_machine.c4
-rw-r--r--libexec/ld.so/sh/rtld_machine.c4
-rw-r--r--libexec/ld.so/sparc/rtld_machine.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/libexec/ld.so/alpha/rtld_machine.c b/libexec/ld.so/alpha/rtld_machine.c
index 48777a21a41..2e1c5ad8b54 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.40 2007/11/27 16:42:17 miod Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.41 2008/02/24 15:47:47 drahn Exp $ */
/*
* Copyright (c) 1999 Dale Rahn
@@ -305,7 +305,7 @@ _dl_md_reloc_got(elf_object_t *object, int lazy)
pltgot[3] = (Elf_Addr)object;
}
if (object->got_size != 0)
- _dl_mprotect((void*)object->got_addr, object->got_size,
+ _dl_mprotect((void*)object->got_start, object->got_size,
PROT_READ);
if (object->plt_size != 0)
_dl_mprotect((void*)object->plt_start, object->plt_size,
diff --git a/libexec/ld.so/arm/rtld_machine.c b/libexec/ld.so/arm/rtld_machine.c
index d81fc87b367..19efa9ea06e 100644
--- a/libexec/ld.so/arm/rtld_machine.c
+++ b/libexec/ld.so/arm/rtld_machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtld_machine.c,v 1.12 2007/11/27 16:42:19 miod Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.13 2008/02/24 15:47:47 drahn Exp $ */
/*
* Copyright (c) 2004 Dale Rahn
@@ -373,7 +373,7 @@ _dl_md_reloc_got(elf_object_t *object, int lazy)
pltgot[2] = (Elf_Addr)_dl_bind_start;
}
if (object->got_size != 0)
- _dl_mprotect((void*)object->got_addr, object->got_size,
+ _dl_mprotect((void*)object->got_start, object->got_size,
PROT_READ);
if (object->plt_size != 0)
_dl_mprotect((void*)object->plt_start, object->plt_size,
diff --git a/libexec/ld.so/sh/rtld_machine.c b/libexec/ld.so/sh/rtld_machine.c
index 41fa8e7d951..e7107cc5b57 100644
--- a/libexec/ld.so/sh/rtld_machine.c
+++ b/libexec/ld.so/sh/rtld_machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtld_machine.c,v 1.9 2007/11/27 16:42:19 miod Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.10 2008/02/24 15:47:47 drahn Exp $ */
/*
* Copyright (c) 2004 Dale Rahn
@@ -820,7 +820,7 @@ _dl_md_reloc_got(elf_object_t *object, int lazy)
pltgot[2] = (Elf_Addr)_dl_bind_start;
}
if (object->got_size != 0)
- _dl_mprotect((void*)object->got_addr, object->got_size,
+ _dl_mprotect((void*)object->got_start, object->got_size,
PROT_READ);
if (object->plt_size != 0)
_dl_mprotect((void*)object->plt_start, object->plt_size,
diff --git a/libexec/ld.so/sparc/rtld_machine.c b/libexec/ld.so/sparc/rtld_machine.c
index 6510e745af5..1438447cdaf 100644
--- a/libexec/ld.so/sparc/rtld_machine.c
+++ b/libexec/ld.so/sparc/rtld_machine.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtld_machine.c,v 1.29 2007/11/27 16:42:19 miod Exp $ */
+/* $OpenBSD: rtld_machine.c,v 1.30 2008/02/24 15:47:47 drahn Exp $ */
/*
* Copyright (c) 1999 Dale Rahn
@@ -451,7 +451,7 @@ _dl_md_reloc_got(elf_object_t *object, int lazy)
}
if (object->got_size != 0)
- _dl_mprotect((void*)object->got_addr, object->got_size,
+ _dl_mprotect((void*)object->got_start, object->got_size,
PROT_READ);
if (object->plt_size != 0)
_dl_mprotect((void*)object->plt_start, object->plt_size,