Restrict gcc.target/i386/spellcheck-options-5.c to Linux targets
[gcc.git] / libbacktrace / ChangeLog
index 684f30ed3beb93205035efa2ef5db743e50368ef..3157c1f4cb458c8bd1247df48e0318fb55e09393 100644 (file)
@@ -1,3 +1,592 @@
+2019-03-11  Ian Lance Taylor  <iant@golang.org>
+
+       PR libbacktrace/89669
+       * Makefile.am (BUILDTESTS): Only add ztest and ztest_alloc if
+       HAVE_ELF.
+       * Makefile.in: Regenerate.
+
+2019-02-26  Tom de Vries  <tdevries@suse.de>
+
+       * btest.c (test5): Allow global.* as minimal symbol name for global.
+
+2019-02-26  Tom de Vries  <tdevries@suse.de>
+
+       * Makefile.am (TESTS): Only add b3test_dwz_buildid if HAVE_DWZ.
+       * Makefile.in: Regenerate.
+
+2019-02-12  Tom de Vries  <tdevries@suse.de>
+
+       PR libbacktrace/81983
+       * dwarf.c (dwarf_lookup_pc): Don't call bsearch if nmemb == 0.
+
+2019-02-10  Tom de Vries  <tdevries@suse.de>
+
+       * Makefile.am (BUILDTESTS): Add btest_lto.
+       * Makefile.in: Regenerate.
+       * btest.c (test1, f2, f3, test3, f22, f23): Declare with
+       __attribute__((noclone)).
+
+2019-02-08  Tom de Vries  <tdevries@suse.de>
+
+       * backtrace.c (backtrace_full): Declare with __attribute__((noinline)).
+       * print.c (backtrace_print): Same.
+       * simple.c (backtrace_simple): Same.
+
+2019-02-08  Tom de Vries  <tdevries@suse.de>
+
+       PR libbacktrace/78063
+       * dwarf.c (build_address_map): Keep all parsed units.
+       (read_referenced_name_from_attr): Handle DW_FORM_ref_addr.
+
+2019-01-31  Tom de Vries  <tdevries@suse.de>
+
+       PR libbacktrace/89136
+       * elf.c (elf_add): Read build-id if with_buildid_data.  Fix
+       'debugaltlink_name_len =+ 1'.
+
+2019-01-29  Tom de Vries  <tdevries@suse.de>
+
+       * install-debuginfo-for-buildid.sh.in: New script.
+       * Makefile.am (check_PROGRAMS): Add b2test and b3test.
+       (TESTS): Add b2test_buildid and b3test_dwz_buildid.
+       * Makefile.in: Regenerate.
+       * configure.ac (HAVE_ELF): Set with AM_CONDITIONAL.
+       (READELF): Set with AC_CHECK_PROG.
+       (install-debuginfo-for-buildid.sh): Generate with AC_CONFIG_FILES.
+       * configure: Regenerate.
+       * elf.c (SYSTEM_BUILD_ID_DIR): Factor out of ...
+       (elf_open_debugfile_by_buildid): ... here.
+
+2019-01-29  Tom de Vries  <tdevries@suse.de>
+
+       * Makefile.am: Replace check_PROGRAMS with BUILDTESTS, except for
+       allocfail.
+       (TESTS): Don't add check_PROGRAMS. Add BUILDTESTS.
+       (check_PROGRAMS): Add BUILDTESTS.
+       * Makefile.in: Regenerate.
+
+2019-01-28  Tom de Vries  <tdevries@suse.de>
+
+       * Makefile.am (xcoff_%.c): Generate sed result into temporary file.
+       Use $< to access prerequisite.
+       * Makefile.in: Regenerate.
+
+2019-01-25  Nathan Sidwell  <nathan@acm.org>
+
+       * elf.c (elf_add): Pass "" filename to recursive call with
+       separated debug.
+
+2019-01-25  Tom de Vries  <tdevries@suse.de>
+
+       * elf.c (elf_add): When handling .gnu_debugaltlink, call elf_add with
+       filename == "".
+       * Makefile.am (TESTS): Add btest_dwz_gnudebuglink.
+       * Makefile.in: Regenerate.
+
+2019-01-25  Tom de Vries  <tdevries@suse.de>
+
+       * Makefile.am: Rewrite dtest rule into "%_gnudebuglink" pattern rule.
+       (TESTS): Rename dtest to btest_gnudebuglink.
+       * Makefile.in: Regenerate.
+
+2019-01-23  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf.c (struct unit): Use size_t for low_offset/high_offset fields.
+       (units_search, find_unit): Use size_t for offset.
+       (build_address_map): Use size_t for unit_offset.
+
+2019-01-20  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * allocfail.c (main): Increase portability of printf statement.
+
+2019-01-18  Ian Lance Taylor  <iant@golang.org>
+
+       PR libbacktrace/88890
+       * mmapio.c (backtrace_get_view): Change size parameter to
+       uint64_t.  Check that value fits in size_t.
+       * read.c (backtrace_get_view): Likewise.
+       * internal.h (backtrace_get_view): Update declaration.
+       * elf.c (elf_add): Pass shstrhdr->sh_size to backtrace_get_view.
+
+2019-01-17  Tom de Vries  <tdevries@suse.de>
+
+       PR libbacktrace/82857
+       * configure.ac (DWZ): Set with AC_CHECK_PROG.
+       (HAVE_DWZ): Set with AM_CONDITIONAL.
+       * configure: Regenerate.
+       * Makefile.am (TESTS): Add btest_dwz.
+       * Makefile.in: Regenerate.
+
+2019-01-17  Tom de Vries  <tdevries@suse.de>
+
+       PR libbacktrace/82857
+       * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_REF_ALT_INFO.
+       (read_attribute): Handle DW_FORM_GNU_ref_alt using
+       ATTR_VAL_REF_ALT_INFO.
+       (read_referenced_name_from_attr): Handle DW_FORM_GNU_ref_alt.
+
+2019-01-17  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf.c (struct unit): Add low_offset and high_offset fields.
+       (struct unit_vector): New type.
+       (struct dwarf_data): Add units and units_counts fields.
+       (find_unit): New function.
+       (find_address_ranges): Add and handle unit_tag parameter.
+       (build_address_map): Add and handle units_vec parameter.
+       (build_dwarf_data): Pass units_vec to build_address_map.  Store resulting
+       units vector.
+
+2019-01-17  Tom de Vries  <tdevries@suse.de>
+
+       PR libbacktrace/82857
+       * dwarf.c (read_attribute): Handle DW_FORM_GNU_strp_alt
+       using altlink.
+
+2019-01-17  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf.c (enum attr_val_encoding): Add ATTR_VAL_NONE.
+       (read_attribute): Add altlink parameter.  Handle missing altlink for
+       DW_FORM_GNU_strp_alt and DW_FORM_GNU_ref_alt.
+       (find_address_ranges, build_address_map, build_dwarf_data): Add and
+       handle altlink parameter.
+       (read_referenced_name, read_function_entry): Add argument to
+       read_attribute call.
+
+2019-01-17  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf.c (struct dwarf_data): Add altlink field.
+       (backtrace_dwarf_add): Add and handle fileline_altlink parameter.
+       * elf.c (elf_add): Add argument to backtrace_dwarf_add call.
+       (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
+       * internal.h (backtrace_dwarf_add): Add fileline_altlink parameter.
+       * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
+       * xcoff.c (xcoff_add): Same.
+
+2019-01-17  Tom de Vries  <tdevries@suse.de>
+
+       * internal.h (backtrace_dwarf_add): Add fileline_entry parameter.
+       * dwarf.c (backtrace_dwarf_add): Add and handle fileline_entry parameter.
+       * elf.c (elf_add): Add and handle fileline_entry parameter.  Add
+       argument to backtrace_dwarf_add call.
+       (phdr_callback, backtrace_initialize): Add argument to elf_add calls.
+       * pecoff.c (coff_add): Add argument to backtrace_dwarf_add call.
+       * xcoff.c (xcoff_add): Same.
+
+2019-01-17  Tom de Vries  <tdevries@suse.de>
+
+       * elf.c (elf_add): Add and handle with_buildid_data and
+       with_buildid_size parameters.  Handle .gnu_debugaltlink section.
+       (phdr_callback, backtrace_initialize): Add arguments to elf_add calls.
+
+2019-01-16  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf.c (read_referenced_name_from_attr): New function.  Factor out
+       of ...
+       (read_referenced_name): ... here, and ...
+       (read_function_entry): ... here.
+
+2019-01-16  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf.c (read_referenced_name): Don't allow DW_AT_name to override any
+       name.
+       (read_function_entry): Same.  Don't allow name found via
+       DW_AT_abstract_origin or case DW_AT_specification to override linkage
+       name.
+
+2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
+
+       PR other/16615
+
+       * backtrace.h: Mechanically replace "can not" with "cannot".
+
+2019-01-01  Jakub Jelinek  <jakub@redhat.com>
+
+       Update copyright years.
+
+2018-12-29  Gerald Pfeifer  <gerald@pfeifer.com>
+
+       * Makefile.am (xcoff_%.c): Use an actual newline instead of \n
+       in sed pattern.
+       * Makefile.in: Regenerate.
+
+2018-12-28  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf.c (build_address_map): Reuse unused units.
+
+2018-12-28  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf.c (build_address_map): Simplify by removing local variable
+       abbrevs.
+
+2018-12-28  Ian Lance Taylor  <iant@golang.org>
+           Tom de Vries  <tdevries@suse.de>
+
+       PR libbacktrace/88063
+       * dwarf.c (free_unit_addrs_vector): Remove.
+       (build_address_map): Keep track of allocated units in vector.  Free
+       allocated units and corresponding abbrevs upon failure.  Remove now
+       redundant call to free_unit_addrs_vector.  Free addrs vector upon
+       failure.  Free allocated unit vector.
+
+2018-12-28  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf.c (build_address_map): Free addrs vector upon failure.
+
+2018-12-14  Tom de Vries  <tdevries@suse.de>
+
+       PR testsuite/88491
+       * allocfail.sh: Remove "set -o pipefail".
+
+2018-12-12  Tom de Vries  <tdevries@suse.de>
+
+       * Makefile.am (TESTS): Add allocfail.sh.
+       (check_PROGRAMS): Add allocfail.
+       * Makefile.in: Regenerate.
+       * instrumented_alloc.c: New file.  Redefine malloc and realloc.
+       Include alloc.c.
+       * allocfail.c: New file.
+       * allocfail.sh: New file.
+
+2018-11-30  Tom de Vries  <tdevries@suse.de>
+
+       * Makefile.am (check_PROGRAMS): Add test_elf, test_xcoff_32,
+       test_xcoff_64, test_pecoff and test_unknown.
+       * Makefile.in: Regenerate.
+       * test_format.c: New file.
+
+2018-11-30  Tom de Vries  <tdevries@suse.de>
+
+       * Makefile.am : Add _with_alloc version for each test in
+       check_PROGRAMS.
+       * Makefile.in: Regenerate.
+
+2018-11-30  Tom de Vries  <tdevries@suse.de>
+
+       * internal.h (backtrace_vector_free): New static inline fuction,
+       factored out of ...
+       * dwarf.c (read_line_info): ... here.
+
+2018-11-28  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf.c (read_abbrevs): Fix handling of abbrevs->abbrevs allocation
+       failure.
+
+2018-11-27  Tom de Vries  <tdevries@suse.de>
+
+       * mmap.c (backtrace_vector_release): Same.
+       * unittest.c (test1): Add check.
+
+2018-11-27  Tom de Vries  <tdevries@suse.de>
+
+       * alloc.c (backtrace_vector_release): Handle vec->size == 0 using free
+       instead of realloc.
+       * Makefile.am (check_PROGRAMS): Add unittest.
+       * Makefile.in: Regenerate.
+       * unittest.c: New file.
+
+2018-11-22  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf.c (read_initial_length): Factor out of ...
+       (build_address_map, read_line_info): ... here.
+
+2018-11-21  Tom de Vries  <tdevries@suse.de>
+
+       * dwarf.c (read_string): Factor out of ...
+       (read_attribute, read_line_header, read_line_program): ... here.
+
+2018-10-31  Joseph Myers  <joseph@codesourcery.com>
+
+       PR bootstrap/82856
+       * Makefile.am: Include multilib.am.
+       * configure.ac: Remove AC_PREREQ.  Use AC_LANG_SOURCE.
+       * Makefile.in, aclocal.m4, config.h.in, configure: Regenerate.
+
+2018-10-05  Ian Lance Taylor  <iant@golang.org>
+
+       PR libbacktrace/87529
+       * backtrace.h: Document that backtrace_create_state should be
+       called only once.
+
+2018-08-05 Iain Buclaw  <ibuclaw@gdcproject.org>
+
+       * configure.ac: Move define of HAVE_ZLIB into check for -lz.
+       * Makefile.in: Regenerate.
+       * config.h.in: Likewise.
+       * configure: Likewise.
+
+2018-08-01  Tony Reix  <tony.reix@atos.net>
+
+       * xcoff.c (struct xcoff_line, struct xcoff_line_vector): Remove.
+       (struct xcoff_func, struct xcoff_func_vector): New structs.
+       (xcoff_syminfo): Drop leading dot from symbol name.
+       (xcoff_line_compare, xcoff_line_search): Remove.
+       (xcoff_func_compare, xcoff_func_search): New static functions.
+       (xcoff_lookup_pc): Search function table.
+       (xcoff_add_line, xcoff_process_linenos): Remove.
+       (xcoff_initialize_fileline): Build function table.
+
+2018-06-21 Denis Khalikov <d.khalikov@partner.samsung.com>
+
+       PR other/86198
+       * elf.c (elf_add): Increase ".note.gnu.build-id" section size
+       checking up to 36 bytes.
+
+2018-04-24  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * configure: Regenerated.
+
+2018-04-19  Jakub Jelinek  <jakub@redhat.com>
+
+       * configure: Regenerated.
+
+2018-04-17  Ian Lance Taylor  <iant@golang.org>
+
+       * backtrace.c: Revert last two changes.  Don't call mmap
+       directly.
+
+2018-04-17  Ian Lance Taylor  <iant@golang.org>
+
+       * backtrace.c: Include backtrace-supported.h before checking
+       BACKTRACE_USES_MALLOC.
+
+2018-04-17  Ian Lance Taylor  <iant@golang.org>
+
+       * backtrace.c (backtrace_full): When testing whether we can
+       allocate memory, call mmap directly, and munmap the memory.
+
+2018-04-04  Jakub Jelinek  <jakub@redhat.com>
+
+       PR other/85161
+       * elf.c (elf_zlib_fetch): Fix up predefined macro names in test for
+       big endian, only use 32-bit loads if endianity macros are predefined
+       and indicate big or little endian.
+
+2018-02-14  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
+
+       PR target/84148
+       * configure: Regenerate.
+
+2018-02-15  Jakub Jelinek  <jakub@redhat.com>
+
+       PR other/82368
+       * elf.c (SHT_PROGBITS): Undefine and define.
+
+2018-02-14  Jakub Jelinek  <jakub@redhat.com>
+
+       PR other/82368
+       * elf.c (EM_PPC64, EF_PPC64_ABI): Undefine and define.
+       (struct elf_ppc64_opd_data): New type.
+       (elf_initialize_syminfo): Add opd argument, handle symbols
+       pointing into the PowerPC64 ELFv1 .opd section.
+       (elf_add): Read .opd section on PowerPC64 ELFv1, pass pointer
+       to structure with .opd data to elf_initialize_syminfo.
+
+2018-01-31  Ian Lance Taylor  <iant@golang.org>
+
+       * elf.c (elf_add): Close descriptor if we use a debugfile.
+       * btest.c (check_open_files): New static function.
+       (main): Call check_open_files.
+
+2018-01-25  Ian Lance Taylor  <iant@golang.org>
+
+       * elf.c (elf_open_debugfile_by_debuglink): Don't check CRC if the
+       desired CRC is zero.
+       (elf_add): Don't clear *found_sym and *found_dwarf if debuginfo.
+
+2018-01-25  Ian Lance Taylor  <iant@golang.org>
+
+       * pecoff.c (coff_add): Only release syms_view if it is valid.
+
+2018-01-25  Ian Lance Taylor  <iant@golang.org>
+
+       * pecoff.c (coff_add): Another memcpy -> coff_read4 fix.
+
+2018-01-24  Ian Lance Taylor  <iant@golang.org>
+
+       * pecoff.c (coff_add): Use coff_read4, not memcpy.
+
+2018-01-24  Ian Lance Taylor  <iant@golang.org>
+
+       PR other/68239
+       * mmap.c (backtrace_free_locked): Don't put more than 16 entries
+       on the free list.
+
+2018-01-19  Tony Reix  <tony.reix@atos.net>
+
+       * xcoff.c (xcoff_incl_compare): New function.
+       (xcoff_incl_search): New function.
+       (xcoff_process_linenos): Use bsearch to find include file.
+       (xcoff_initialize_fileline): Sort include file information.
+
+2018-01-16  Ian Lance Taylor  <iant@golang.org>
+
+       * elf.c (codes) [GENERATE_FIXED_HUFFMAN_TABLE]: Fix size to be
+       288.
+       (main) [GENERATE_FIXED_HUFFMAN_TABLE]: Pass 288 to
+       elf_zlib_inflate_table.  Generate elf_zlib_default_dist_table.
+       (elf_zlib_default_table): Update.
+       (elf_zlib_default_dist_table): New static array.
+       (elf_zlib_inflate): Use elf_zlib_default_dist_table for dist table
+       for block type 1.
+       * ztest.c (struct zlib_test): Add uncompressed_len.
+       (tests): Initialize uncompressed_len field.  Add new test case.
+       (test_samples): Use uncompressed_len field.
+
+2018-01-03  Jakub Jelinek  <jakub@redhat.com>
+
+       Update copyright years.
+
+2017-11-17  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
+
+       * configure.ac: Add CET_FLAGS to EXTRA_FLAGS.
+       * aclocal.m4: Regenerate.
+       * Makefile.in: Likewise.
+       * configure: Likewise.
+
+2017-10-06  Ian Lance Taylor  <iant@golang.org>
+
+       * ztest.c (test_large): Pass unsigned long *, not size_t *, to
+       zlib uncompress function.
+
+2017-10-05  Ian Lance Taylor  <iant@golang.org>
+
+       * elf.c (elf_zlib_fetch): Change pval argument to uint64_t *.
+       Read a four byte integer.
+       (elf_zlib_inflate): Change val to uint64_t.  Align pin to a 32-bit
+       boundary before ever calling elf_zlib_fetch.
+       * ztest.c (test_large): Simplify print statements a bit.
+
+2017-10-02  Ian Lance Taylor  <iant@golang.org>
+
+       * ztest.c: #include <errno.h>.
+       (TEST_TIMING): Don't define, don't test.
+       (xclock_gettime, xclockid_t): Define if !HAVE_CLOCK_GETTIME.
+       (clockid_t, clock_gettime, CLOCK_REALTIME): Likewise.
+       (ZLIB_CLOCK_GETTIME_ARG): Define.
+       * configure.ac: Change clock_gettime_link to CLOCK_GETTIME_LINK.
+       * Makefile.am: Likewise.
+       * configure, Makefile.in: Rebuild.
+
+2017-10-02  Thomas Schwinge  <thomas@codesourcery.com>
+
+       PR other/67165
+       * Makefile.am: Append the content of clock_gettime_link to
+       ztest_LDADD.
+       * configure.ac: Test for the case that clock_gettime is in librt.
+       * Makefile.in: Regenerate.
+       * configure: Likewise.
+
+       PR other/67165
+       * configure.ac: Check for clock_gettime.
+       * config.h.in: Regenerate.
+       * configure: Likewise.
+       * ztest.c (average_time, test_large): Conditionalize test timing
+       on clock_gettime availability.
+
+2017-09-29  Tony Reix  <tony.reix@atos.net>
+
+       * xcoff.c: Initial support for DWARF debug sections in XCOFF.
+       (STYP_DWARF, SSUBTYP_DW*): Define.
+       (enum dwarf_section): Define.
+       (struct dwsect_info): Define.
+       (xcoff_add): Look for DWARF sections, pass them to
+       backtrace_dwarf_add.
+
+2017-09-28  Ian Lance Taylor  <iant@golang.org>
+
+       PR other/67165
+       * elf.c (__builtin_prefetch): Define if not __GNUC__.
+       (unlikely): Define.
+       (SHF_UNCOMPRESSED, ELFCOMPRESS_ZLIB): Define.
+       (b_elf_chdr): Define type.
+       (enum debug_section): Add ZDEBUG_xxx values.
+       (debug_section_names): Add names for new sections.
+       (struct debug_section_info): Add compressed field.
+       (elf_zlib_failed, elf_zlib_fetch): New static functions.
+       (HUFFMAN_TABLE_SIZE, HUFFMAN_VALUE_MASK): Define.
+       (HUFFMAN_BITS_SHIFT, HUFFMAN_BITS_MASK): Define.
+       (HUFFMAN_SECONDARY_SHIFT): Define.
+       (ZDEBUG_TABLE_SIZE): Define.
+       (ZDEBUG_TABLE_CODELEN_OFFSET, ZDEBUG_TABLE_WORK_OFFSET): Define.
+       (final_next_secondary): New static variable if
+       BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE.
+       (elf_zlib_inflate_table): New static function.
+       (BACKTRACE_GENERATE_FIXED_HUFFMAN_TABLE): If define, define main
+       function to produce fixed Huffman table.
+       (elf_zlib_default_table): New static variable.
+       (elf_zlib_inflate): New static function.
+       (elf_zlib_verify_checksum): Likewise.
+       (elf_zlib_inflate_and_verify): Likewise.
+       (elf_uncompress_zdebug): Likewise.
+       (elf_uncompress_chdr): Likewise.
+       (backtrace_uncompress_zdebug): New extern function.
+       (elf_add): Look for .zdebug sections and SHF_COMPRESSED debug
+       sections, and uncompress them.
+       * internal.h (backtrace_compress_zdebug): Declare.
+       * ztest.c: New file.
+       * configure.ac: Check for -lz and check whether the linker
+       supports --compress-debug-sections.
+       * Makefile.am (ztest_SOURCES): New variable.
+       (ztest_CFLAGS, ztest_LDADD): New variables.
+       (check_PROGRAMS): Add ztest.
+       (ctestg_SOURCES): New variable.
+       (ctestg_CFLAGS, ctestg_LDFLAGS, ctestg_LDADD): New variables.
+       (ctesta_SOURCES): New variable.
+       (ctesta_CFLAGS, ctesta_LDFLAGS, ctesta_LDADD): New variables.
+       (check_PROGRAMS): Add ctestg and ctesta.
+       * configure, config.h.in, Makefile.in: Rebuild.
+
+2017-09-22  Ian Lance Taylor  <iant@golang.org>
+
+       PR sanitizer/77631
+       * configure.ac: Check for lstat and readlink.
+       * elf.c (lstat, readlink): Provide dummy versions if real versions
+       are not available.
+       * configure, config.h.in: Rebuild.
+
+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>
+
+       PR sanitizer/77631
+       Support for external debug info.
+       * elf.c: Include <errno.h>, <sys/stat.h>, <unistd.h>.
+       (S_ISLNK): Define if not defined.
+       (xstrnlen): Define if strnlen is not available.
+       (b_elf_note): Define type.
+       (NT_GNU_BUILD_ID): Define macro.
+       (elf_crc32, elf_crc32_file): New static functions.
+       (elf_is_symlink, elf_readlink): New static functions.
+       (elf_open_debugfile_by_buildid): New static function.
+       (elf_try_debugfile): New static function.
+       (elf_find_debugfile_by_debuglink): New static function.
+       (elf_open_debugfile_by_debuglink): New static function.
+       (elf_add): Add filename and debuginfo parameters.  Adjust all
+       callers.  Look for external debug info notes, and try to fetch
+       debug info from external file.
+       (struct phdr_data): Add exe_filename field.
+       (phdr_callback): Pass filename to elf_add.
+       (backtrace_initialize): Add filename parameter.
+       * internal.h (backtrace_initialize): Add filename parameter.
+       * fileline.c (fileline_initialize): Pass filename to
+       backtrace_initialize.
+       * pecoff.c (fileline_initialize): Add unused filename parameter.
+       * unknown.c (fileline_initialize): Likewise.
+       * xcoff.c (fileline_initialize): Likewise.
+       * configure.ac: Check for objcopy --add-gnu-debuglink.
+       * Makefile.am (dtest): New test target.
+       * configure, Makefile.in: Rebuild.
+
+2017-09-12  Steve Ellcey  <sellcey@cavium.com>
+
+       PR other/81096
+       * Makefile.am (ttest_CFLAGS): Add $(AM_CFLAGS)
+       * Makefile.in: Regenerate.
+
 2017-09-12  Steve Ellcey  <sellcey@cavium.com>
 
        PR other/81096
 2012-09-19  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
            Ian Lance Taylor  <iant@google.com>
 
-        * configure.ac (GCC_HEADER_STDINT): Invoke.
-        * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
-        * btest.c: Don't include <stdint.h>.
-        * dwarf.c: Likewise.
-        * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
+       * configure.ac (GCC_HEADER_STDINT): Invoke.
+       * backtrace.h: If we can't find <stdint.h>, use "gstdint.h".
+       * btest.c: Don't include <stdint.h>.
+       * dwarf.c: Likewise.
+       * configure, aclocal.m4, Makefile.in, config.h.in: Rebuild.
 
 2012-09-18  Ian Lance Taylor  <iant@google.com>
 
 
        * Initial implementation.
 \f
-Copyright (C) 2012-2017 Free Software Foundation, Inc.
+Copyright (C) 2012-2019 Free Software Foundation, Inc.
 
 Copying and distribution of this file, with or without modification,
 are permitted in any medium without royalty provided the copyright