From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12844 Path: news.gmane.org!.POSTED!not-for-mail From: "Bob B." Newsgroups: gmane.linux.lib.musl.general Subject: dl_iterate_phdr() behaves differently on musl and glibc Date: Mon, 28 May 2018 15:44:15 +0200 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1527514947 21552 195.159.176.226 (28 May 2018 13:42:27 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 28 May 2018 13:42:27 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-12860-gllmg-musl=m.gmane.org@lists.openwall.com Mon May 28 15:42:23 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1fNIPm-0005TG-Hu for gllmg-musl@m.gmane.org; Mon, 28 May 2018 15:42:22 +0200 Original-Received: (qmail 3360 invoked by uid 550); 28 May 2018 13:44:28 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 3325 invoked from network); 28 May 2018 13:44:27 -0000 Importance: normal Sensitivity: Normal X-Priority: 3 X-Provags-ID: V03:K1:PxiqWJiJogtQKey+p+QDoxB1Ew9keOwfO3XpshbiSZS 6w8+SQCV0PuXDN0bBgcMzTFgrsfipLTaRpjgoywsOke5e0R6Iw P/iaQHAj5HGKLsQtT4OK9T4Yznz2MvbI6g3JG7kv7xz1y4avX3 5JgGOYMb7NhfMC+ykNaFmjBn7tMYw+BI8fC7KCB9MlYmzOrED2 b3+YYnfBzH9lEtQ/YzgjpBGIOxVBeK/L5pdQVzlvnT9zza+d7t 4+r3nwMKvml9E6zu1DzFClrW1cGUQL9SkcTaJX11uRiazvjbHH NjZYD0= X-UI-Out-Filterresults: notjunk:1;V01:K0:2IuM0BlxKz0=:pXUO6MO/LQPosP/6Cxq5/P LW4dpIA16EHIDnuDbsf2HEvO7UIHvmeOHioxwcTl0E/Id5gAigvmlRCkMG4UU7Q9o+T/zYoqX 9DaZaEh3aqGN4XXswv8VR557s+53zhP3DjpWsbudRloYMxe0zsMZ/2mRjlbCDEyahgzwXqvdD GmevhUe1pi8OU0TxKWUqkd2E29rKcTPaLBm8DxD+kW9yC0XrunUzVFv/jx29YMjxeEEjp7PnA liahkbaCo3N8gEvLbhgOYv3C5eE2VoIM53T4xf2uVWCYYTi06ny+HUa/TrC1u4kS/iM+thoob 6RJoN7I0+SqnahP/KH0D6uSzW12CS7JwIJ7NLRG03jVGetIA3MsYJ4uKmiUzkp/kSkeYImS4w QnDlZu7WNEj4dJj5b34NYT8jBjW7liGIge/Hw12Jds1geIXwQ3O8L4CxK+GMhNgaPd9tg+PCS FMW2ODqt1anwv9fZrs6Rjmq41owI2oaqkQfkcvTyFOBVkGi9DsRA Xref: news.gmane.org gmane.linux.lib.musl.general:12844 Archived-At: 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.