mirror of
https://github.com/tobast/libunwind-eh_elf.git
synced 2024-11-28 10:07:37 +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,10 +319,7 @@ elf_w (get_proc_name_in_image) (unw_addr_space_t as, struct elf_image *ei,
|
||||||
struct elf_image mdi;
|
struct elf_image mdi;
|
||||||
if (elf_w (extract_minidebuginfo) (ei, &mdi))
|
if (elf_w (extract_minidebuginfo) (ei, &mdi))
|
||||||
{
|
{
|
||||||
int ret_mdi;
|
int ret_mdi = elf_w (lookup_symbol) (as, ip, &mdi, load_offset, buf,
|
||||||
|
|
||||||
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);
|
buf_len, &min_dist);
|
||||||
|
|
||||||
/* Closer symbol was found (possibly truncated). */
|
/* Closer symbol was found (possibly truncated). */
|
||||||
|
|
Loading…
Reference in a new issue