mailing list of musl libc
 help / color / mirror / code / Atom feed
* dl_iterate_phdr() behaves differently on musl and glibc
@ 2018-05-28 13:44 Bob B.
  2018-05-28 20:02 ` Rich Felker
  0 siblings, 1 reply; 8+ messages in thread
From: Bob B. @ 2018-05-28 13:44 UTC (permalink / raw)
  To: musl

Hi list.

I noticed a difference in behavior of dl_iterate_phdr() when playing with musl and glibc.
The program I tried was the example on the bottom of the page: https://linux.die.net/man/3/dl_iterate_phdr

What happens is that musl returns the program itself when run + shared objects.
glibc only returns the shared objects.

Not sure which one is right. Or if both are acceptable.
Any light to clear why the different behavior is appreciated.

Thanks all.



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2018-05-30 12:33 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-05-28 13:44 dl_iterate_phdr() behaves differently on musl and glibc Bob B.
2018-05-28 20:02 ` Rich Felker
2018-05-28 21:39   ` Bob B.
2018-05-28 22:16     ` Rich Felker
2018-05-28 22:31       ` Bob B.
2018-05-28 23:16         ` Jameson Nash
2018-05-30 12:33           ` Bob B.
2018-05-28 22:34   ` Luc Van Oostenryck

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).