27 lines
876 B
Diff
27 lines
876 B
Diff
commit 2543c337e633fefe55c123b2f375a47fda8a884d
|
|
Author: Martin Milata <mmilata@redhat.com>
|
|
Date: Wed Aug 13 17:54:44 2014 +0200
|
|
|
|
unwind: fix unwinding of VDSO frames on i386
|
|
|
|
May or may not be elfutils bug:
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1129756
|
|
|
|
Fixes #163.
|
|
|
|
Signed-off-by: Martin Milata <mmilata@redhat.com>
|
|
|
|
diff --git a/lib/core_unwind.c b/lib/core_unwind.c
|
|
index 4731402..53af092 100644
|
|
--- a/lib/core_unwind.c
|
|
+++ b/lib/core_unwind.c
|
|
@@ -110,7 +110,7 @@ find_elf_core (Dwfl_Module *mod, void **userdata, const char *modname,
|
|
return -1;
|
|
|
|
*file_name = realpath(executable_file, NULL);
|
|
- *elfp = elf_begin(fd, ELF_C_READ, NULL);
|
|
+ *elfp = elf_begin(fd, ELF_C_READ_MMAP, NULL);
|
|
if (*elfp == NULL)
|
|
{
|
|
warn("Unable to open executable '%s': %s", executable_file,
|