Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Sep 1998 08:32:31 +0100 (BST)
From:      Doug Rabson <dfr@nlsystems.com>
To:        Chuck Robey <chuckr@glue.umd.edu>
Cc:        Brian Feldman <green@unixhelp.org>, current@FreeBSD.ORG
Subject:   Re: E-day problems: rtld-elf dlsym() broken?
Message-ID:  <Pine.BSF.4.01.9809020831010.360-100000@herring.nlsystems.com>
In-Reply-To: <Pine.BSF.4.00.9809011733280.353-100000@picnic.mat.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.01.9809020831010.360-100000>