diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-02-03 22:11:42 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-02-03 22:11:42 +0000 |
commit | 1d56d903346c12ecc3222814ae556a503a95690c (patch) | |
tree | 11440e3e653998b8a5c4992c647bd8cc3885c816 /libexec/ld.so/loader.c | |
parent | 0ed7b3b4efbeb124e705a7a4dc17668b4a1c2ee2 (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.c | 8 |
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; } |