Subject: dlopen problem?
To: None <port-mips@netbsd.org>
From: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
List: port-mips
Date: 12/17/2001 03:09:44
----Next_Part(Mon_Dec_17_03:09:44_2001_467)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

hi.

is dlopen curretly broken on mips if it's called
from inside of libc?
(our multibyte locale support needs such usage of dlopen.)

on Citrus (japanese) ML, I've been reported that
setlocale causes coredump when it calls dlopen.

currently in our tree, multibyte locale support is
disabled on mips accidentally, so this problem doesn't
appear. I've posted another patch to solve it to
tech-userlevel some time ago. (but no reply yet ;-)

attached patch supress coredumps at least.
(I've not tested by myself since I don't have any
mips hardware.)

thanks.

---
YAMAMOTO Takashi<yamt@mwd.biglobe.ne.jp>

----Next_Part(Mon_Dec_17_03:09:44_2001_467)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="dlfcn_elf.c.diff"

Index: dlfcn_elf.c
===================================================================
RCS file: /cvs/cvsroot/basesrc/lib/libc/dlfcn/dlfcn_elf.c,v
retrieving revision 1.2
diff -u -p -r1.2 dlfcn_elf.c
--- dlfcn_elf.c	2000/07/06 02:48:41	1.2
+++ dlfcn_elf.c	2001/12/16 17:56:57
@@ -30,7 +30,6 @@
 __RCSID("$NetBSD: dlfcn_elf.c,v 1.2 2000/07/06 02:48:41 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 
-#if defined(PIC) || defined(lint)
 #include "namespace.h"
 
 #define ELFSIZE ARCH_ELFSIZE
@@ -50,4 +49,3 @@ __weak_alias(dladdr,__dladdr)
 #endif
 
 #include <dlfcn_stubs.c>
-#endif /* PIC */

----Next_Part(Mon_Dec_17_03:09:44_2001_467)----