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.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/libexec/ld.so/loader.c b/libexec/ld.so/loader.c
index 22253c1f360..f70edab0e97 100644
--- a/libexec/ld.so/loader.c
+++ b/libexec/ld.so/loader.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: loader.c,v 1.43 2002/07/27 15:40:44 art Exp $ */
+/* $OpenBSD: loader.c,v 1.44 2002/08/09 14:35:43 art Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -507,10 +507,7 @@ _dl_rtld(elf_object_t *object)
*/
_dl_md_reloc(object, DT_REL, DT_RELSZ);
_dl_md_reloc(object, DT_RELA, DT_RELASZ);
- if (_dl_bindnow || object->dyn.bind_now) /* XXX Perhaps more checking ? */
- _dl_md_reloc_got(object, 0);
- else
- _dl_md_reloc_got(object, 1);
+ _dl_md_reloc_got(object, !(_dl_bindnow || object->dyn.bind_now));
object->status |= STAT_RELOC_DONE;
}