From: Ian Lance Taylor Date: Thu, 21 Sep 2017 18:44:39 +0000 (+0000) Subject: re PR go/82284 (go -version segfaults on big endian architectures) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=f0de45420decfc807067cb1581ffb838234d0f71;p=gcc.git re PR go/82284 (go -version segfaults on big endian architectures) PR go/82284 * elf.c (backtrace_initialize): Set pd.exe_filename. From-SVN: r253078 --- diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog index 731716f0be7..d611a1fb4e7 100644 --- a/libbacktrace/ChangeLog +++ b/libbacktrace/ChangeLog @@ -1,3 +1,8 @@ +2017-09-21 Ian Lance Taylor + + PR go/82284 + * elf.c (backtrace_initialize): Set pd.exe_filename. + 2017-09-20 Ian Lance Taylor Denis Khalikov diff --git a/libbacktrace/elf.c b/libbacktrace/elf.c index 530d4a2e2f4..eb7d303712a 100644 --- a/libbacktrace/elf.c +++ b/libbacktrace/elf.c @@ -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);