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/powerpc/rtld_machine.c | |
parent | a3326831a199f66c39d88dc75467dd8c4a080d47 (diff) |
Cleanup/remove duplicate code that checks STAT_RELOC_DONE.
Diffstat (limited to 'libexec/ld.so/powerpc/rtld_machine.c')
-rw-r--r-- | libexec/ld.so/powerpc/rtld_machine.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libexec/ld.so/powerpc/rtld_machine.c b/libexec/ld.so/powerpc/rtld_machine.c index 0d3bfce382b..4b3ccdefac0 100644 --- a/libexec/ld.so/powerpc/rtld_machine.c +++ b/libexec/ld.so/powerpc/rtld_machine.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtld_machine.c,v 1.9 2002/06/05 19:34:44 art Exp $ */ +/* $OpenBSD: rtld_machine.c,v 1.10 2002/06/05 23:13:55 art Exp $ */ /* * Copyright (c) 1999 Dale Rahn @@ -78,7 +78,7 @@ _dl_printf("object relocation size %x, numrela %x\n", object->Dyn.info[relasz], numrela); #endif - if ((object->status & STAT_RELOC_DONE) || !relas) + if (relas == NULL) return(0); /* for plt relocation usage */ @@ -383,7 +383,6 @@ _dl_printf(" found other symbol at %x size %d\n", _dl_exit(1); } } - object->status |= STAT_RELOC_DONE; load_list = object->load_list; while (load_list != NULL) { _dl_mprotect(load_list->start, load_list->size, load_list->prot); |