diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2002-06-05 23:13:56 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2002-06-05 23:13:56 +0000 |
commit | abf3149e898054b54aa5e5b11f0b87c74e2db550 (patch) | |
tree | 0e0e774c450c358acf60663d2c5929983c3a38c3 /libexec/ld.so/mips/rtld_machine.c | |
parent | a3326831a199f66c39d88dc75467dd8c4a080d47 (diff) |
Cleanup/remove duplicate code that checks STAT_RELOC_DONE.
Diffstat (limited to 'libexec/ld.so/mips/rtld_machine.c')
-rw-r--r-- | libexec/ld.so/mips/rtld_machine.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/ld.so/mips/rtld_machine.c b/libexec/ld.so/mips/rtld_machine.c index fdd7ac7368e..1719433ea55 100644 --- a/libexec/ld.so/mips/rtld_machine.c +++ b/libexec/ld.so/mips/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.4 2002/05/24 04:21:27 deraadt Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.5 2002/06/05 23:13:55 art Exp $ */ /* * Copyright (c) 1998 Per Fogelstrom, Opsycon AB @@ -54,7 +54,7 @@ _dl_md_reloc(elf_object_t *object, int rel, int relsz) numrel = object->Dyn.info[relsz] / sizeof(Elf32_Rel); relocs = (Elf32_Rel *)(object->Dyn.info[rel]); - if ((object->status & STAT_RELOC_DONE) || !relocs) + if (relocs == NULL) return(0); for (i = 0; i < numrel; i++, relocs++) { @@ -102,7 +102,7 @@ _dl_md_reloc(elf_object_t *object, int rel, int relsz) _dl_exit(1); } } - object->status |= STAT_RELOC_DONE; + return(fails); } |