https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71161
--- Comment #11 from Uroš Bizjak <ubizjak at gmail dot com> --- (In reply to Richard Biener from comment #10) > Thanks for tracking it down! I'm putting this workaround in my tree for the > next testing. I've briefly looked into the dl_iterate_phdr history but > can't find > a fix so it might be a miscompilation of the system compiler building the old > glibc (gcc 4.3 here)? I doubt this, my CentOS 5.11 has ancient gcc-4.1.2-55 as a system compiler, and its glibc-2.5 has the same problem. Nevertheless, glibc people should look at this problem from their perspective. I will propose the patch later today, it robustifies the compiler noticeably.