This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug manual/16262] Semantics of dladdr don't quite match documentation


https://sourceware.org/bugzilla/show_bug.cgi?id=16262

--- Comment #2 from Stephen Kell <srk31 at srcf dot ucam.org> ---
Thanks for this.

The man page is a fraction better, but still problematic because it doesn't say
what it means for an address to be "matching", and this still differs quite a
bit between ELF and non-ELF cases.

I've just discovered that the dlsym(3) man page is maintained in the Linux
man-pages project, so I will contribute a patch there.

I would also be interested in contributing a patch to glibc which adds a flag
to dladdr1() for requesting the behaviour I was hoping for, if you think it has
a chance of being applied.

I am familiar with dl_iterate_phdr, but it doesn't do what I want. It iterates
over program headers, whereas I want to iterate over (defined, dynamic)
symbols.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]