summaryrefslogtreecommitdiff
path: root/libexec/ld.so/loader.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-02-03 22:11:42 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-02-03 22:11:42 +0000
commit1d56d903346c12ecc3222814ae556a503a95690c (patch)
tree11440e3e653998b8a5c4992c647bd8cc3885c816 /libexec/ld.so/loader.c
parent0ed7b3b4efbeb124e705a7a4dc17668b4a1c2ee2 (diff)
Previously only powerpc used the DT_INIT field to find the ctors/init
code, now that will be changed to all arch besides mips will default to using that. mips probably would be changed to but it has not been tested.
Diffstat (limited to 'libexec/ld.so/loader.c')
-rw-r--r--libexec/ld.so/loader.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libexec/ld.so/loader.c b/libexec/ld.so/loader.c
index 44f4a3ffc62..e4b33a7f704 100644
--- a/libexec/ld.so/loader.c
+++ b/libexec/ld.so/loader.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: loader.c,v 1.5 2001/01/23 15:56:39 deraadt Exp $ */
+/* $OpenBSD: loader.c,v 1.6 2001/02/03 22:11:41 drahn Exp $ */
/*
* Copyright (c) 1998 Per Fogelstrom, Opsycon AB
@@ -565,12 +565,12 @@ _dl_call_init(elf_object_t *object)
}
-#ifdef __powerpc__
+#ifndef __mips__
if(object->dyn.init) {
(*object->dyn.init)();
}
#endif
-#ifndef __powerpc__
+#ifdef __mips__
/* XXX We perform relocation of DTOR/CTOR. This is a ld bug problem
* XXX that should be fixed.
*/
@@ -607,7 +607,7 @@ _dl_call_init(elf_object_t *object)
(*object->dyn.init)();
}
#endif
-#endif /* ! __powerpc__ */
+#endif /* __mips__ */
object->status |= STAT_INIT_DONE;
}