[haiku-bugs] Re: [Haiku] #8064: dladdr doesn't work for local symbols

  • From: "hamish" <trac@xxxxxxxxxxxx>
  • Date: Sun, 25 Mar 2012 17:16:20 -0000

#8064: dladdr doesn't work for local symbols
---------------------------+-----------------------------------------------
   Reporter:  unitedroad   |      Owner:  axeld
       Type:  bug          |     Status:  new
   Priority:  normal       |  Milestone:  R1
  Component:               |    Version:  R1/alpha3
  System/libroot.so        |   Keywords:  dladdr, shared library, so, dlfcn
 Resolution:               |   Blocking:
 Blocked By:               |   Platform:  All
Has a Patch:  0            |
---------------------------+-----------------------------------------------

Comment (by hamish):

 Sorry about the noise. I thought I was being clever getting rid of the
 static buffers in `dladdr` but I realised `image_t::name` stores the name
 only, not the full path as required for `Dl_info::dli_fname`. Would it be
 OK to add a path field to `image_t` that `register_image` could fill in?

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8064#comment:7>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: