On Fri, Sep 14, 2012 at 2:41 AM, Jakub Jelinek <ja...@redhat.com> wrote:
> 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

It was implemented in

http://sourceware.org/ml/libc-alpha/2003-10/msg00098.html

for glibc 2.3.0 and we can check

AT_PHDR:         0x400040
AT_PHNUM:        10

with LD_SHOW_AUXV.

-- 
H.J.

Reply via email to