[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[libunwind] Re: dl_iterate_phdr() and libunwind
From: |
David Mosberger-Tang |
Subject: |
[libunwind] Re: dl_iterate_phdr() and libunwind |
Date: |
Thu, 11 May 2006 21:37:31 -0600 |
Hi Arun,
IIRC, unwinding of static binaries never worked on DWARF-based
platforms (it does work on ia64). I don't remember exactly what the
problem was but it had to do with finding a way to get access to the
unwind-program-header. Richard Henderson probably can give you a much
better idea of what should and can be done for this case.
--david
On 5/11/06, Arun Sharma <address@hidden> wrote:
Hi David,
I just realized that libunwind doesn't work on statically linked
binaries on x86-64. The reason is that dl_iterate_phdr() is not
implemented for statically linked binaries.
But there are some comments in:
src/dwarf/Gfind_proc_info-lsb.c
else
/* Otherwise this is a static executable with no _DYNAMIC. Assume
that data-relative addresses are relative to 0, i.e.,
absolute. */
which seems to indicate it worked on some platform. Do you know which
platforms had dl_iterate_phdr() working for statically linked binaries?
-Arun
--
Mosberger Consulting LLC, http://www.mosberger-consulting.com/