From owner-freebsd-current Wed Sep 2 00:33:45 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id AAA05921 for freebsd-current-outgoing; Wed, 2 Sep 1998 00:33:45 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from nlsystems.com (nlsys.demon.co.uk [158.152.125.33]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id AAA05914 for ; Wed, 2 Sep 1998 00:33:43 -0700 (PDT) (envelope-from dfr@nlsystems.com) Received: from herring.nlsystems.com (herring.nlsystems.com [10.0.0.2]) by nlsystems.com (8.9.1/8.8.5) with SMTP id IAA03780; Wed, 2 Sep 1998 08:32:32 +0100 (BST) Date: Wed, 2 Sep 1998 08:32:31 +0100 (BST) From: Doug Rabson To: Chuck Robey cc: Brian Feldman , current@FreeBSD.ORG Subject: Re: E-day problems: rtld-elf dlsym() broken? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 1 Sep 1998, Chuck Robey wrote: > > On Tue, 1 Sep 1998, Doug Rabson wrote: > > > On Tue, 1 Sep 1998, Brian Feldman wrote: > > > > > As a start, I'd like to say great job to John Birrell and everyone else > > > involved, going to ELF worked almost without a hitch, I'm impressed! But > > > there is a problem now: dlsym, for me, seems to have stopped working. > > > Entirely.... Returning NULL always it seems. I've attached a program (yes, > > > it's a start on a basic debugger, I'm implementing rtld functions first) > > > which should show the problem to anyone interested. > > > > I suggest that you build rtld-elf with DEBUG_FLAGS=-g and set a breakpoint > > in dlsym(). > > Seeing this about dlsym (which always existed in ld.so) I figured the > elf one would be in ld.so-elf (whatever the name is). Another tought > occurred, tho: Will those functions finally be available for statically > linked elf images? The exact same issues exist for static elf images as for static a.out images. The linker doesn't put a dynamic symbol table into the static image so it can't override symbols defined in shared libraries. This is a problem for libc fundamentals like malloc and stdio. -- Doug Rabson Mail: dfr@nlsystems.com Nonlinear Systems Ltd. Phone: +44 181 951 1891 Fax: +44 181 381 1039 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message