Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jan 1998 09:50:25 -0800
From:      John Polstra <jdp@polstra.com>
To:        Terry Lambert <tlambert@primenet.com>
Cc:        hasty@rah.star-gate.com, hackers@FreeBSD.ORG
Subject:   Re: dladdr hax 
Message-ID:  <199801181750.JAA14188@austin.polstra.com>
In-Reply-To: Your message of "Sun, 18 Jan 1998 06:53:04 GMT." <199801180653.XAA07823@usr04.primenet.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> To be bug-compatible with Solaris, you should simply return argv[0]
> *witjout* trying to find it in your PATH.

Really?!  Gawd, what a hack.  Well, that's easy, anyway.

> Yes, this is a kludge.

The whole dladdr interface reeks of, shall we say, expediency.  I
particularly loathe the requirement that it also return the "nearest
symbol name to the specified address."  I wish they had made that
optional.  It's very expensive, requiring a linear search of the
whole symbol table.  And I bet it's not even used most of the time.
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth



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