On Thu, Sep 13, 2012 at 07:46:52PM -0700, H.J. Lu wrote: > There is no reason why --eh-frame-hdr can't be used with static > executable on Linux. This patch enables --eh-frame-hdr for static
Well, there is. For more than 2 years after the addition of --eh-frame-hdr support dl_iterate_phdr in libc.a would simply always fail, you aren't adding any kind of check that old glibc (2001-2003ish) isn't used. Even in newer glibcs, it relies on AT_* aux vector values provided by the kernel, if they are not provided for whatever reason, it would fail. Jakub