1
0
Fork 0
mirror of https://github.com/tobast/libunwind-eh_elf.git synced 2024-12-25 04:23:42 +01:00

Do not compute load offset for MiniDebugInfo

We already have the value computed based on the executable. Furthermore,
debuginfo need not have valid program header table, thus the result
might be bogus.

Signed-off-by: Martin Milata <mmilata@redhat.com>
This commit is contained in:
Martin Milata 2013-06-05 16:10:47 +02:00 committed by Arun Sharma
parent 4509adb853
commit 65ac867416

View file

@ -319,11 +319,8 @@ elf_w (get_proc_name_in_image) (unw_addr_space_t as, struct elf_image *ei,
struct elf_image mdi;
if (elf_w (extract_minidebuginfo) (ei, &mdi))
{
int ret_mdi;
load_offset = elf_w (get_load_offset) (&mdi, segbase, mapoff);
ret_mdi = elf_w (lookup_symbol) (as, ip, &mdi, load_offset, buf,
buf_len, &min_dist);
int ret_mdi = elf_w (lookup_symbol) (as, ip, &mdi, load_offset, buf,
buf_len, &min_dist);
/* Closer symbol was found (possibly truncated). */
if (ret_mdi == 0 || ret_mdi == -UNW_ENOMEM)