[haiku-bugs] Re: [Haiku] #15743: implement dl_iterate_phdr

  • From: "Haiku" <trac@xxxxxxxxxxxx>
  • To: undisclosed-recipients: ;
  • Date: Tue, 25 Feb 2020 05:02:33 -0000

#15743: implement dl_iterate_phdr
----------------------------+----------------------------
   Reporter:  X512          |      Owner:  nobody
       Type:  bug           |     Status:  new
   Priority:  normal        |  Milestone:  Unscheduled
  Component:  System/POSIX  |    Version:  R1/Development
 Resolution:                |   Keywords:
 Blocked By:                |   Blocking:
Has a Patch:  0             |   Platform:  All
----------------------------+----------------------------
Comment (by waddlesplash):

The dl_iterate_phdr() function allows an application to inquire at run
 time to find out which shared objects it has loaded.

 I think you can rather easily implement this using Haiku's
 {{{get_next_image_info}}}. Indeed, it sounds like a good candidate to put
 into libbsd.

 Musl's implementation, for reference:
 https://github.com/rofl0r/musl/blob/master/src/ldso/dl_iterate_phdr.c
-- 
Ticket URL: <https://dev.haiku-os.org/ticket/15743#comment:2>
Haiku <https://dev.haiku-os.org>
The Haiku operating system.

Other related posts: