From owner-freebsd-current Thu Jul 31 19:02:42 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id TAA17261 for current-outgoing; Thu, 31 Jul 1997 19:02:42 -0700 (PDT) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id TAA17251; Thu, 31 Jul 1997 19:02:38 -0700 (PDT) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.6/8.8.5) with ESMTP id TAA03183; Thu, 31 Jul 1997 19:02:25 -0700 (PDT) Message-Id: <199708010202.TAA03183@austin.polstra.com> To: hsu@FreeBSD.ORG Subject: Re: pccard and -current; a long way to go. :-( In-Reply-To: <199707300710.AAA14949@hub.freebsd.org> Organization: Polstra & Co., Seattle, WA Cc: current@FreeBSD.ORG Date: Thu, 31 Jul 1997 19:02:25 -0700 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk In article <199707300710.AAA14949@hub.freebsd.org>, Jeffrey Hsu wrote: > I see this problem too in conjunction with language tools. My next > JDK port which I'm working on now (not sure if I should do a stable > 1.1.4 port or just skip ahead to 1.2, neither of which the Linux > people have yet) would happily use ELF if it solves the dlsym(RTLD_NEXT) > problem (namely, we don't have it) That's not really related to ELF. It's caused by my own neglect. :-) Being reminded of it made me feel so guilty that I implemented it this afternoon. I'll send you some patches to test if you're interested. > and it also eliminates a bunch > of kludges in the Java interpreter code that I have to make because > we prepend underscores and the rest of the world doesn't. You're talking about calls to dlsym(), I assume. Personally, I think that the argument to dlsym() ought to be the symbol name *as it is written in C*. For a.out, dlsym() itself should add the leading underscore if necessary. I.e., you shouldn't have to call the function differently depending on what your object format is. Unfortunately, it wasn't done that way originally in FreeBSD. It would break some things to change it now. Of course, it would break most of the same things if we switched to ELF ... John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth