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:
parent
4509adb853
commit
65ac867416
1 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue