re PR go/82284 (go -version segfaults on big endian architectures)
authorIan Lance Taylor <iant@google.com>
Thu, 21 Sep 2017 18:44:39 +0000 (18:44 +0000)
committerIan Lance Taylor <ian@gcc.gnu.org>
Thu, 21 Sep 2017 18:44:39 +0000 (18:44 +0000)
PR go/82284
* elf.c (backtrace_initialize): Set pd.exe_filename.

From-SVN: r253078

libbacktrace/ChangeLog
libbacktrace/elf.c

index 731716f0be71ffb3faf80529d3af84b94e98a69d..d611a1fb4e7828f8778b00cb1c2b8150e1eef95a 100644 (file)
@@ -1,3 +1,8 @@
+2017-09-21  Ian Lance Taylor  <iant@google.com>
+
+       PR go/82284
+       * elf.c (backtrace_initialize): Set pd.exe_filename.
+
 2017-09-20  Ian Lance Taylor  <iant@golang.org>
            Denis Khalikov  <d.khalikov@partner.samsung.com>
 
index 530d4a2e2f4beab81b128d0e5ed1af2c5ec4f15c..eb7d303712aa98728e83adfdc3d513f50f152f04 100644 (file)
@@ -1489,6 +1489,7 @@ backtrace_initialize (struct backtrace_state *state, const char *filename,
   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);