I somehow failed to initialize the exe_filename field of phdr_data,
which most likely led to PR 82284.  Bootstrapped and ran libbacktrace
tests for this obvious fix.  Committed to mainline.

Ian


2017-09-21  Ian Lance Taylor  <i...@google.com>

PR go/82284
* elf.c (backtrace_initialize): Set pd.exe_filename.
Index: elf.c
===================================================================
--- elf.c       (revision 253076)
+++ elf.c       (working copy)
@@ -1489,6 +1489,7 @@
   pd.fileline_fn = &elf_fileline_fn;
   pd.found_sym = &found_sym;
   pd.found_dwarf = &found_dwarf;
+  pd.exe_filename = filename;
   pd.exe_descriptor = ret < 0 ? descriptor : -1;
 
   dl_iterate_phdr (phdr_callback, (void *) &pd);

Reply via email to