summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2002-08-09 14:35:44 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2002-08-09 14:35:44 +0000
commitb64cccae0b49e70ca7f7e46e2b57ddbef526fe91 (patch)
tree1cb2ae58958cb2fbc32033d1e3c4ae815c938e18
parent228f5eef07dc16ae2560d29e8ed96610c24f311c (diff)
Simplify.
-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;
}