Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Sep 2009 01:30:05 GMT
From:      David Chisnall <csdavec@swansea.ac.uk>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: kern/134391: [libc] dladdr(3) does effectively not work on main program.
Message-ID:  <200909140130.n8E1U5XZ053693@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR kern/134391; it has been noted by GNATS.

From: David Chisnall <csdavec@swansea.ac.uk>
To: bug-followup@FreeBSD.org, phk@critter.freebsd.dk
Cc:  
Subject: Re: kern/134391: [libc] dladdr(3) does effectively not work on main program.
Date: Mon, 14 Sep 2009 02:06:51 +0100

 I tried to submit something related to this bug a while ago, but send- 
 pr ate it...
 
 dlsym() on FreeBSD is similarly broken.  It's worth noting that nm is  
 capable of listing all of the symbols in an executable or shared  
 object, even when compiled without debug info, and so they must exist  
 in the binary, they are just not being added to the symbol table that  
 is exposed via these functions.  The behaviour of dladdr() is  
 particularly bad because, unlike dlsym() it doesn't return failure, it  
 simply returns the name of a different symbol from the same library.
 
 David



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200909140130.n8E1U5XZ053693>