public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb] Copy in libbacktrace from gcc
@ 2021-09-28 11:27 Andrew Burgess
0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2021-09-28 11:27 UTC (permalink / raw)
To: bfd-cvs, gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=63a4b10683992ae6ae2d93711369bc10df8fbce9
commit 63a4b10683992ae6ae2d93711369bc10df8fbce9
Author: Andrew Burgess <andrew.burgess@embecosm.com>
Date: Thu Aug 12 10:14:50 2021 +0100
Copy in libbacktrace from gcc
This copies in libbacktrace from the gcc repository as it was in the
commit 62e420293a293608f383d9b9c7f2debd666e9fc9. GDB is going to
start using this library soon.
A dependency between GDB and libbacktrace has already been added to
the top level Makefile, so, after this commit, when building GDB,
libbacktrace will be built first. However, libbacktrace is not yet
linked into GDB, or used by GDB in any way.
It is possible to stop libbacktrace being built by configuring the
tree with --disable-libbacktrace.
This commit does NOT update src-release.sh, that will be done in the
next commit, this commit ONLY imports libbacktrace from gcc. This
means that if you try to make a release of GDB from exactly this
commit then the release tar file will not include libbacktrace.
However, as libbacktrace is an optional dependency this is fine.
Diff:
---
libbacktrace/ChangeLog | 1774 +++
libbacktrace/ChangeLog.jit | 14 +
libbacktrace/Makefile.am | 586 +
libbacktrace/Makefile.in | 2528 +++
libbacktrace/README | 23 +
libbacktrace/aclocal.m4 | 867 ++
libbacktrace/alloc.c | 167 +
libbacktrace/allocfail.c | 136 +
libbacktrace/allocfail.sh | 104 +
libbacktrace/atomic.c | 113 +
libbacktrace/backtrace-supported.h.in | 66 +
libbacktrace/backtrace.c | 129 +
libbacktrace/backtrace.h | 206 +
libbacktrace/btest.c | 501 +
libbacktrace/config.h.in | 184 +
libbacktrace/configure | 16893 +++++++++++++++++++++
libbacktrace/configure.ac | 581 +
libbacktrace/dwarf.c | 4056 +++++
libbacktrace/edtest.c | 120 +
libbacktrace/edtest2.c | 43 +
libbacktrace/elf.c | 4919 ++++++
libbacktrace/fileline.c | 346 +
libbacktrace/filetype.awk | 13 +
libbacktrace/install-debuginfo-for-buildid.sh.in | 65 +
libbacktrace/instrumented_alloc.c | 114 +
libbacktrace/internal.h | 380 +
libbacktrace/macho.c | 1355 ++
libbacktrace/mmap.c | 331 +
libbacktrace/mmapio.c | 110 +
libbacktrace/mtest.c | 410 +
libbacktrace/nounwind.c | 66 +
libbacktrace/pecoff.c | 935 ++
libbacktrace/posix.c | 104 +
libbacktrace/print.c | 92 +
libbacktrace/read.c | 110 +
libbacktrace/simple.c | 108 +
libbacktrace/sort.c | 108 +
libbacktrace/state.c | 72 +
libbacktrace/stest.c | 137 +
libbacktrace/test_format.c | 55 +
libbacktrace/testlib.c | 234 +
libbacktrace/testlib.h | 110 +
libbacktrace/ttest.c | 161 +
libbacktrace/unittest.c | 92 +
libbacktrace/unknown.c | 65 +
libbacktrace/xcoff.c | 1607 ++
libbacktrace/xztest.c | 508 +
libbacktrace/ztest.c | 541 +
48 files changed, 42239 insertions(+)
diff --git a/libbacktrace/ChangeLog b/libbacktrace/ChangeLog
new file mode 100644
index 00000000000..dc986b9370e
--- /dev/null
+++ b/libbacktrace/ChangeLog
@@ -0,0 +1,1774 @@
+2021-08-13 Sergei Trofimovich <siarheit@google.com>
+
+ * install-debuginfo-for-buildid.sh.in: Force non-localized readelf
+ output with LANG=C.
+
+2021-06-28 Clément Chigot <clement.chigot@atos.net>
+
+ * xcoff.c (SSUBTYP_DWRNGES): New define.
+ (xcoff_add): Use correct XCOFF DWARF section subtype
+ for DEBUG_RANGES. Remove lineoff workaround.
+ Adjust base_address.
+ (xcoff_initialize_syminfo): Adapt to new base_address.
+ (xcoff_lookup_pc): Likewise.
+ (xcoff_initialize_fileline): Likewise.
+
+2021-05-03 H.J. Lu <hjl.tools@gmail.com>
+
+ PR bootstrap/99703
+ * configure: Regenerated.
+
+2021-03-03 Ian Lance Taylor <iant@golang.org>
+
+ * dwarf.c (read_line_program): Don't special case file 0.
+ (read_function_entry): Likewise.
+
+2021-03-02 Ian Lance Taylor <iant@golang.org>
+
+ PR libbacktrace/98818
+ * dwarf.c (dwarf_buf_error): Add errnum parameter. Change all
+ callers.
+ * backtrace.h: Update backtrace_error_callback comment.
+
+2021-02-12 Ian Lance Taylor <iant@golang.org>
+
+ * configure.ac: Check for objcopy --add-gnu-debuglink by using
+ objcopy --help.
+ * configure: Regenerate
+
+2021-01-18 Ian Lance Taylor <iant@golang.org>
+
+ * Makefile.am (%_dwz): If dwz fails, use uncompressed debug info.
+ * Makefile.in: Regenerate.
+ * configure: Regenerate.
+
+2021-01-18 Ian Lance Taylor <iant@golang.org>
+
+ PR debug/98716
+ * dwarf.c (read_v2_paths): Allocate zero entry for dirs and
+ filenames.
+ (read_line_program): Remove parameter u, change caller. Don't
+ subtract one from dirs and filenames index.
+ (read_function_entry): Don't subtract one from filenames index.
+
+2021-01-05 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * configure: Re-generate.
+
+2020-12-05 Iain Sandoe <iain@sandoe.co.uk>
+
+ PR target/97865
+ * configure: Regenerate.
+
+2020-12-02 Ian Lance Taylor <iant@golang.org>
+
+ * dwarf.c (resolve_string): Use > rather than >= to check whether
+ string index extends past buffer.
+ (resolve_addr_index): Similarly for address index.
+
+2020-11-29 John David Anglin <danglin@gcc.gnu.org>
+
+ * configure: Regenerate.
+
+2020-10-20 Ian Lance Taylor <iant@golang.org>
+
+ * internal.h (ATTRIBUTE_FALLTHROUGH): Define.
+ * elf.c (elf_zlib_inflate): Use ATTRIBUTE_FALLTHROUGH.
+
+2020-09-28 Ian Lance Taylor <iant@golang.org>
+
+ PR libbacktrace/97082
+ * Makefile.am (check_DATA): Add mtest.dSYM if USE_DSYMUTIL.
+ * Makefile.in: Regenerate.
+
+2020-09-28 Ian Lance Taylor <iant@golang.org>
+
+ PR libbacktrace/97227
+ * configure.ac (USE_DSYMUTIL): Define instead of HAVE_DSYMUTIL.
+ * Makefile.am: Change all uses of HAVE_DSYMUTIL to USE_DSYMUTIL.
+ * configure: Regenerate.
+ * Makefile.in: Regenerate.
+
+2020-09-23 Ian Lance Taylor <iant@golang.org>
+
+ * dwarf.c (report_inlined_functions): Handle PC == -1 and PC ==
+ p->low.
+ (dwarf_lookup_pc): Likewise.
+
+2020-09-17 Ian Lance Taylor <iant@golang.org>
+
+ PR libbacktrace/97080
+ * fileline.c (backtrace_syminfo_to_full_callback): New function.
+ (backtrace_syminfo_to_full_error_callback): New function.
+ * elf.c (elf_nodebug): Call syminfo_fn if possible.
+ * internal.h (struct backtrace_call_full): Define.
+ (backtrace_syminfo_to_full_callback): Declare.
+ (backtrace_syminfo_to_full_error_callback): Declare.
+ * mtest.c (f3): Only check all[i] if data.index permits.
+
+2020-09-16 Iain Sandoe <iain@sandoe.co.uk>
+
+ * macho.c (MACH_O_CPU_TYPE_PPC): New.
+ (MACH_O_CPU_TYPE_PPC64): New.
+ Add compile-tests for powerpc to the Mach-O variants.
+
+2020-09-14 Ian Lance Taylor <iant@golang.org>
+
+ PR libbacktrace/93608
+ Add support for MiniDebugInfo.
+ * elf.c (struct elf_view): Define. Replace most uses of
+ backtrace_view with elf_view.
+ (elf_get_view): New static functions. Replace most calls of
+ backtrace_get_view with elf_get_view.
+ (elf_release_view): New static functions. Replace most calls of
+ backtrace_release_view with elf_release_view.
+ (elf_uncompress_failed): Rename from elf_zlib_failed. Change all
+ callers.
+ (LZMA_STATES, LZMA_POS_STATES, LZMA_DIST_STATES): Define.
+ (LZMA_DIST_SLOTS, LZMA_DIST_MODEL_START): Define.
+ (LZMA_DIST_MODEL_END, LZMA_FULL_DISTANCES): Define.
+ (LZMA_ALIGN_SIZE, LZMA_LEN_LOW_SYMBOLS): Define.
+ (LZMA_LEN_MID_SYMBOLS, LZMA_LEN_HIGH_SYMBOLS): Define.
+ (LZMA_LITERAL_CODERS_MAX, LZMA_LITERAL_CODER_SIZE): Define.
+ (LZMA_PROB_IS_MATCH_LEN, LZMA_PROB_IS_REP_LEN): Define.
+ (LZMA_PROB_IS_REP0_LEN, LZMA_PROB_IS_REP1_LEN): Define.
+ (LZMA_PROB_IS_REP2_LEN, LZMA_PROB_IS_REP0_LONG_LEN): Define.
+ (LZMA_PROB_DIST_SLOT_LEN, LZMA_PROB_DIST_SPECIAL_LEN): Define.
+ (LZMA_PROB_DIST_ALIGN_LEN): Define.
+ (LZMA_PROB_MATCH_LEN_CHOICE_LEN): Define.
+ (LZMA_PROB_MATCH_LEN_CHOICE2_LEN): Define.
+ (LZMA_PROB_MATCH_LEN_LOW_LEN): Define.
+ (LZMA_PROB_MATCH_LEN_MID_LEN): Define.
+ (LZMA_PROB_MATCH_LEN_HIGH_LEN): Define.
+ (LZMA_PROB_REP_LEN_CHOICE_LEN): Define.
+ (LZMA_PROB_REP_LEN_CHOICE2_LEN): Define.
+ (LZMA_PROB_REP_LEN_LOW_LEN): Define.
+ (LZMA_PROB_REP_LEN_MID_LEN): Define.
+ (LZMA_PROB_REP_LEN_HIGH_LEN): Define.
+ (LZMA_PROB_LITERAL_LEN): Define.
+ (LZMA_PROB_IS_MATCH_OFFSET, LZMA_PROB_IS_REP_OFFSET): Define.
+ (LZMA_PROB_IS_REP0_OFFSET, LZMA_PROB_IS_REP1_OFFSET): Define.
+ (LZMA_PROB_IS_REP2_OFFSET): Define.
+ (LZMA_PROB_IS_REP0_LONG_OFFSET): Define.
+ (LZMA_PROB_DIST_SLOT_OFFSET): Define.
+ (LZMA_PROB_DIST_SPECIAL_OFFSET): Define.
+ (LZMA_PROB_DIST_ALIGN_OFFSET): Define.
+ (LZMA_PROB_MATCH_LEN_CHOICE_OFFSET): Define.
+ (LZMA_PROB_MATCH_LEN_CHOICE2_OFFSET): Define.
+ (LZMA_PROB_MATCH_LEN_LOW_OFFSET): Define.
+ (LZMA_PROB_MATCH_LEN_MID_OFFSET): Define.
+ (LZMA_PROB_MATCH_LEN_HIGH_OFFSET): Define.
+ (LZMA_PROB_REP_LEN_CHOICE_OFFSET): Define.
+ (LZMA_PROB_REP_LEN_CHOICE2_OFFSET): Define.
+ (LZMA_PROB_REP_LEN_LOW_OFFSET): Define.
+ (LZMA_PROB_REP_LEN_MID_OFFSET): Define.
+ (LZMA_PROB_REP_LEN_HIGH_OFFSET): Define.
+ (LZMA_PROB_LITERAL_OFFSET): Define.
+ (LZMA_PROB_TOTAL_COUNT): Define.
+ (LZMA_IS_MATCH, LZMA_IS_REP, LZMA_IS_REP0): Define.
+ (LZMA_IS_REP1, LZMA_IS_REP2, LZMA_IS_REP0_LONG): Define.
+ (LZMA_DIST_SLOT, LZMA_DIST_SPECIAL, LZMA_DIST_ALIGN): Define.
+ (LZMA_MATCH_LEN_CHOICE, LZMA_MATCH_LEN_CHOICE2): Define.
+ (LZMA_MATCH_LEN_LOW, LZMA_MATCH_LEN_MID): Define.
+ (LZMA_MATCH_LEN_HIGH, LZMA_REP_LEN_CHOICE): Define.
+ (LZMA_REP_LEN_CHOICE2, LZMA_REP_LEN_LOW): Define.
+ (LZMA_REP_LEN_MID, LZMA_REP_LEN_HIGH, LZMA_LITERAL): Define.
+ (elf_lzma_varint): New static function.
+ (elf_lzma_range_normalize): New static function.
+ (elf_lzma_bit, elf_lzma_integer): New static functions.
+ (elf_lzma_reverse_integer): New static function.
+ (elf_lzma_len, elf_uncompress_lzma_block): New static functions.
+ (elf_uncompress_lzma): New static function.
+ (backtrace_uncompress_lzma): New function.
+ (elf_add): Add memory and memory_size parameters. Change all
+ callers. Look for .gnu_debugdata section, and, if found,
+ decompress it and use it for symbols and debug info. Permit the
+ descriptor parameter to be -1.
+ * internal.h (backtrace_uncompress_lzma): Declare.
+ * mtest.c: New file.
+ * xztest.c: New file.
+ * configure.ac: Check for nm, xz, and comm programs. Check for
+ liblzma library.
+ (HAVE_MINIDEBUG): Define.
+ * Makefile.am (mtest_SOURCES): Define.
+ (mtest_CFLAGS, mtest_LDADD): Define.
+ (TESTS): Add mtest_minidebug if HAVE_MINIDEBUG.
+ (%_minidebug): New pattern rule, if HAVE_MINIDEBUG.
+ (xztest_SOURCES, xztest_CFLAGS, xztest_LDADD): Define.
+ (xztest_alloc_SOURCES, xztest_alloc_CFLAGS): Define
+ (xztest_alloc_LDADD): Define.
+ (BUILDTESTS): Add mtest, xztest, xztest_alloc.
+ (CLEANFILES): Add files created by minidebug pattern.
+ (btest.lo): Correct INCDIR reference.
+ (mtest.lo, xztest.lo, ztest.lo): New targets.
+ * configure: Regenerate.
+ * config.h.in: Regenerate.
+ * Makefile.in: Regenerate.
+
+2020-09-09 Ian Lance Taylor <iant@golang.org>
+
+ * pecoff.c (coff_initialize_syminfo): Add is_64 parameter.
+ (coff_add): Determine and pass is_64.
+
+2020-09-09 Ian Lance Taylor <iant@golang.org>
+
+ PR libbacktrace/96973
+ * fileline.c (macho_get_executable_path): New static function.
+ (fileline_initialize): Call macho_get_executable_path.
+
+2020-09-09 Ian Lance Taylor <iant@golang.org>
+
+ * dwarf.c (function_addrs_search): Compare against the next entry
+ low address, not the high address.
+ (unit_addrs_search): Likewise.
+ (build_address_map): Add a trailing unit_addrs.
+ (read_function_entry): Add a trailing function_addrs.
+ (read_function_info): Likewise.
+ (report_inlined_functions): Search backward for function_addrs
+ match.
+ (dwarf_lookup_pc): Search backward for unit_addrs and
+ function_addrs matches.
+
+2020-09-08 Ian Lance Taylor <iant@golang.org>
+
+ * simple.c (simple_unwind): Correct comment spelling.
+
+2020-09-08 Ian Lance Taylor <iant@golang.org>
+
+ * macho.c (macho_add_dsym): Make space for '/' in dsym. Use
+ correct length when freeing diralc.
+
+2020-09-08 Ian Lance Taylor <iant@golang.org>
+
+ PR libbacktrace/96973
+ * macho.c (macho_add_fat): Correctly swap 32-bit file offset.
+
+2020-09-08 Ian Lance Taylor <iant@golang.org>
+
+ PR libbacktrace/96971
+ * filetype.awk: Only match magic number at start of line.
+
+2020-08-24 Ian Lance Taylor <iant@golang.org>
+
+ * macho.c (MACH_O_MH_MAGIC_FAT_64): Define.
+ (MACH_O_MH_CIGAM_FAT_64): Define.
+ (struct macho_fat_arch_64): Define.
+ (macho_add_fat): Add and use is_64 parameter.
+ (macho_add): Recognize 64-bit fat files.
+
+2020-07-30 H.J. Lu <hjl.tools@gmail.com>
+
+ PR bootstrap/96202
+ * configure: Regenerated.
+
+2020-07-08 Ian Lance Taylor <iant@golang.org>
+
+ * configure.ac: Test linker support for DWARF5
+ * configure: Regenerate
+
+2020-05-29 H.J. Lu <hjl.tools@gmail.com>
+
+ PR bootstrap/95413
+ * configure: Regenerated.
+
+2020-05-15 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR bootstrap/95147
+ * configure: Regenerated.
+
+2020-05-14 H.J. Lu <hongjiu.lu@intel.com>
+
+ * configure: Regenerated.
+
+2020-05-13 Ian Lance Taylor <iant@golang.org>
+
+ * ztest.c (test_large): Mark state ATTRIBUTE_UNUSED.
+
+2020-05-13 Ian Lance Taylor <iant@golang.org>
+
+ PR go/95061
+ * posix.c (backtrace_open): Treat EACCESS like ENOENT.
+
+2020-05-12 H.J. Lu <hongjiu.lu@intel.com>
+
+ * Makefile.am (AM_CFLAGS): Add $(CET_HOST_FLAGS).
+ * configure.ac: Add GCC_CET_HOST_FLAGS(CET_HOST_FLAGS) and
+ AC_SUBST(CET_HOST_FLAGS). Clear CET_HOST_FLAGS if jit isn't
+ enabled.
+ * Makefile.in: Regenerated.
+ * configure: Likewise.
+
+2020-05-11 Ian Lance Taylor <iant@golang.org>
+
+ PR libbacktrace/95012
+ * configure.ac: Check for getpagesize declaration.
+ * mmap.c: Declare getpagesize if necessary.
+ * mmapio.c: Likewise.
+ * configure: Regenerate.
+ * config.h.in: Regenerate.
+ * Makefile.in: Regenerate.
+
+2020-05-09 Roland McGrath <mcgrathr@google.com>
+
+ * elf.c (elf_add): Bail early if there are no section headers at all.
+
+2020-05-09 Ian Lance Taylor <iant@golang.org>
+
+ * elf.c (elf_add): Don't free strtab if an error occurs after
+ recording symbol information.
+
+2020-05-09 Ian Lance Taylor <iant@golang.org>
+
+ PR libbacktrace/88745
+ * macho.c: New file.
+ * filetype.awk: Recognize Mach-O files.
+ * Makefile.am (FORMAT_FILES): Add macho.c.
+ (check_DATA): New variable. Set to .dSYM if HAVE_DSYMUTIL.
+ (%.dSYM): New pattern target.
+ (test_macho_SOURCES, test_macho_CFLAGS): New targets.
+ (test_macho_LDADD): New target.
+ (BUILDTESTS): Add test_macho.
+ (macho.lo): Add dependencies.
+ * configure.ac: Recognize macho file type. Check for
+ mach-o/dyld.h. Don't try to run objcopy if we don't find it.
+ Look for dsymutil and define a HAVE_DSYMUTIL conditional.
+ * Makefile.in: Regenerate.
+ * configure: Regenerate.
+ * config.h.in: Regenerate.
+
+2020-05-09 Ian Lance Taylor <iant@golang.org>
+
+ * read.c (backtrace_get_view): Support short read.
+
+2020-05-09 Ian Lance Taylor <iant@golang.org>
+
+ * elf.c (elf_add): If debug sections are very large or far apart,
+ read them individually rather than as a single view.
+
+2020-05-08 Ian Lance Taylor <iant@golang.org>
+
+ * fileline.c (sysctl_exec_name): New static function.
+ (sysctl_exec_name1): New macro or static function.
+ (sysctl_exec_name2): Likewise.
+ (fileline_initialize): Try sysctl_exec_name[12].
+ * configure.ac: Check for sysctl args to fetch executable name.
+ * configure: Regenerate.
+ * config.h.in: Regenerate.
+
+2020-02-15 Ian Lance Taylor <iant@golang.org>
+
+ * ztest.c (test_large): Update file to current libgo test file.
+
+2020-02-03 Ian Lance Taylor <iant@golang.org>
+
+ * Makefile.am (libbacktrace_TEST_CFLAGS): Define.
+ (test_elf32_CFLAGS): Use $(libbacktrace_test_CFLAGS).
+ (test_elf_64_CFLAGS, test_xcoff_32_CFLAGS): Likewise.
+ (test_xcoff_64_CFLAGS, test_pecoff_CFLAGS): Likewise.
+ (test_unknown_CFLAGS, unittest_CFLAGS): Likewise.
+ (unittest_alloc_CFLAGS, allocfail_CFLAGS): Likewise.
+ (b2test_CFLAGS, b3test_CFLAGS, btest_CFLAGS): Likewise.
+ (btest_lto_CFLAGS, btest_alloc_CFLAGS, stest_CFLAGS): Likewise.
+ (stest_alloc_CFLAGS): Likewise.
+ * Makefile.in: Regenerate.
+ * ztest.c (error_callback_compress): Mark vdata unused.
+ (test_large): Add casts to avoid warnings.
+
+2020-01-01 Jakub Jelinek <jakub@redhat.com>
+
+ Update copyright years.
+
+2019-12-13 Ian Lance Taylor <iant@golang.org>
+
+ Add DWARF 5 support.
+ * dwarf.c (struct attr): Add val field.
+ (enum attr_val_encoding): Add ATTR_VAL_ADDDRESS_INDEX,
+ ATTR_VAL_STRING_INDEX, ATTR_VAL_RNGLISTS_INDEX.
+ (struct line_header): Add addrsize field.
+ (struct line_header_format): Define.
+ (struct unit): Add str_offsets_base, addr_base, and rnglists_base
+ fields.
+ (read_uint24): New static function.
+ (read_attribute): Add implicit_val parameter. Replace dwarf_str
+ and dwarf_str_size parameters with dwarf_sections parameter. Add
+ support for new DWARF 5 forms. Change all callers.
+ (resolve_string): New static function.
+ (resolve_addr_index): Likewise.
+ (read_abbrevs): Support DW_FORM_implicit_const.
+ (struct pcrange): Add lowpc_is_addr_index, highpc_is_addr_Index,
+ and ranges_is_index fields.
+ (update_pcrange): Support DWARF 5 encodings.
+ (add_high_low_range): New static function, split out of
+ add_ranges.
+ (add_ranges_from_ranges): Likewise.
+ (add_ranges_from_rnglists): New static function.
+ (add_ranges): Just call new helper functions.
+ (find_address_ranges): Use resolve_string for strings, after
+ reading all attributes. Handle new DWARF 5 attributes.
+ (build_address_map): Support DWARF 5 compilation units.
+ (read_v2_paths): New static function, split out of
+ read_line_header.
+ (read_lnct): New static function.
+ (read_line_header_format_entries): Likewise.
+ (read_line_header): Add ddata parameter. Support DWARF 5 line
+ headers. Call new helper functions. Change all callers.
+ (read_line_program): Use addrsize from line program header. Don't
+ special case directory index 0 for DWARF 5.
+ (read_referenced_name): Use resolve_string.
+ (read_function_entry): Handle DWARF 5 encodings. Use
+ resolve_string.
+ * internal.h (enum dwarf_section): Add DEBUG_ADDR,
+ DEBUG_STR_OFFSETS, DEBUG_LINE_STR, DEBUG_RNGLISTS.
+ * elf.c (dwarf_section_names): Add new section names.
+ * pecoff.c (dwarf_section_names): Likewise.
+ * xcoff.c (xcoff_add): Clear dwarf_sections before setting
+ fields.
+ * configure.ac: Define HAVE_DWARF5 automake conditional.
+ * Makefile.am (dwarf5_SOURCES): New variable if HAVE_DWARF5.
+ (dwarf5_CFLAGS, dwarf5_LDADD): Likewise.
+ (dwarf5_alloc_SOURCES, dwarf5_alloc_CFLAGS): Likewise.
+ (dwarf5_alloc_LDADD): Likewise.
+ (BUILDTESTS): Add dwarf5 tests if HAVE_DWARF5.
+ (CLEANFILES, clean-local): Define.
+
+2019-12-08 Ian Lance Taylor <iant@golang.org>
+
+ * dwarf.c (struct pcrange): Define.
+ (update_pcrange, add_ranges): New static functions.
+ (add_unit_addr): Change signature to work with add_ranges. Don't
+ add base_address here.
+ (add_unit_ranges): Remove.
+ (find_address_ranges): Replace str/ranges parameters with
+ dwarf_sections. Use update_pcrange and add_ranges. Change all
+ callers.
+ (add_function_range): Change signature to work with add_ranges.
+ Don't add base_address here.
+ (add_function_ranges): Remove.
+ (read_function_entry): Use update_pcrange and add_ranges.
+
+2019-12-04 Ian Lance Taylor <iant@golang.org>
+
+ * edtest.c (test1): Add noclone attribute.
+
+2019-12-04 Ian Lance Taylor <iant@golang.org>
+
+ * internal.h (enum dwarf_section): Define.
+ (struct dwarf_sections): Define.
+ (backtrace_dwarf_add): Update declaration to replace specific
+ section parameters with dwarf_sections parameter.
+ * dwarf.c (struct dwarf_data): Replace specific section fields
+ with dwarf_sections field.
+ (read_attribute): Use dwarf_sections with altlink.
+ (build_address_map): Replace specific section parameters with
+ dwarf_sections parameter. Change all callers.
+ (read_line_info): Use dwarf_sections with ddata.
+ (read_referenced_name): Likewise.
+ (add_function_ranges): Likewise.
+ (read_function_entry): Likewise.
+ (read_function_info): Likewise.
+ (build_dwarf_data): Replace specific section parameters with
+ dwarf_sections parameter. Change all callers.
+ (backtrace_dwarf_add): Likewise.
+ * elf.c (enum debug_section): Remove.
+ (dwarf_section_names): Remove .zdebug names.
+ (elf_add): Track zsections separately. Build dwarf_sections.
+ * pecoff.c (enum debug_section): Remove.
+ (struct debug_section_info): Remove data field.
+ (coff_add): Build dwarf_sections.
+ * xcoff.c (enum dwarf_section): Remove. Replace DWSECT_xxx
+ references with DEBUG_xxx references.
+ (xcoff_add): Build dwarf_sections.
+
+2019-09-27 Maciej W. Rozycki <macro@wdc.com>
+
+ * configure: Regenerate.
+
+2019-09-26 Ian Lance Taylor <iant@golang.org>
+
+ PR libbacktrace/91908
+ * pecoff.c (backtrace_initialize): Explicitly cast unchecked
+ __sync_bool_compare_and_swap to void.
+ * xcoff.c (backtrace_initialize): Likewise.
+
+2019-09-03 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * configure.ac: Remove references to spu.
+ * configure: Regenerate.
+
+2019-05-24 Clement Chigot <clement.chigot@atos.net>
+
+ * Makefile.am (BUILDTESTS): Remove test_elf, add test_elf_32 and
+ test_elf_64.
+ * Makefile.in: Regenerate.
+
+2019-05-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * configure.ac (have_dl_iterate_phdr): Remove *-*-solaris2.10*
+ handling.
+ * configure: Regenerate.
+
+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
+ * libbacktrace/Makefile.in
+ (HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ttest_CFLAGS): Add $(AM_CFLAGS)
+
+2017-08-02 David Edelsohn <dje.gcc@gmail.com>
+
+ PR bootstrap/81638
+ * xcoff.c (xcoff_process_linenos): Initialize incl to NULL.
+
+2017-07-28 Tony Reix <tony.reix@atos.net>
+
+ * xcoff.c: Don't leak a file descriptor if an archive is malformed.
+
+2017-07-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * fileline.c (fileline_initialize): Print pid_t as long.
+
+2017-07-26 Tony Reix <tony.reix@atos.net>
+
+ * configure.ac: Check for XCOFF32/XCOFF64. Check for loadquery.
+ * filetype.awk: Separate AIX XCOFF32 and XCOFF64.
+ * xcoff.c: Add support for AIX XCOFF32 and XCOFF64 formats.
+ * configure, config.h.in: Regenerate.
+
+2017-07-21 Tony Reix <tony.reix@atos.net>
+
+ * filetype.awk: Add AIX XCOFF type detection.
+ * configure.ac: Recognize xcoff format.
+ * Makefile.am (FORMAT_FILES): Add xcoff.c.
+ * fileline.c: Include <unistd.h>.
+ (fileline_initialize): Add case for AIX procfs.
+ * xcoff.c: New file.
+ * configure, Makefile.in: Rebuild.
+
+2017-06-21 Richard Biener <rguenther@suse.de>
+
+ * configure.ac: Add AC_SYS_LARGEFILE.
+ * config.h.in: Regenerate.
+ * configure: Likewise.
+
+2017-06-11 Ian Lance Taylor <iant@golang.org>
+
+ * elf.c (backtrace_initialize): Always set *fileline_fn.
+ * ttest.c: New file.
+ * btest.c: Move support functions into testlib.c. Change calls to
+ check to pass file name.
+ * testlib.c: New file, copied from (part of) btest.c.
+ * testlib.h: New file, declarations for testlib.c.
+ * edtest.c: Use testlib.h and testlib.c.
+ * configure.ac: Test for -pthread, set HAVE_PTHREAD conditional.
+ * Makefile.am (btest_SOURCES): Add testlib.c.
+ (edtest_SOURCES): Likewise.
+ (CHECK_PROGRAMS): Add ttest if HAVE_PTHREAD.
+ (ttest_SOURCES, ttest_CFLAGS, ttest_LDADD): Define.
+ * configure, Makefile.in: Rebuild.
+
+2017-05-19 Than McIntosh <thanm@google.com>
+
+ * dwarf.c (free_line_header): Don't free dirs if dirs_count == 0.
+ (read_line_header): Don't allocate dirs if dirs_count == 0.
+ * edtest.c: New file.
+ * edtest2.c: New file.
+ * Makefile.am (edtest_SOURCES, edtest_LDADD): Define.
+ (check_PROGRAMS): Add edtest.
+ (edtest2_build.c, gen_edtest2_build): New targets.
+ * Makefile.in: Rebuild.
+
+2017-03-08 Sam Thursfield <sam.thursfield@codethink.co.uk>
+
+ * btest.c (test5): Replace #ifdef guard with 'unused' attribute
+ to fix compile warning when BACKTRACE_SUPPORTED isn't defined.
+
+2017-01-01 Jakub Jelinek <jakub@redhat.com>
+
+ Update copyright years.
+
+2016-11-15 Matthias Klose <doko@ubuntu.com>
+
+ * configure: Regenerate.
+
+2016-09-11 Carlos Liam <carlos@aarzee.me>
+
+ * all: Remove meaningless trailing whitespace.
+
+2016-05-18 Uros Bizjak <ubizjak@gmail.com>
+
+ PR target/71161
+ * elf.c (phdr_callback) [__i386__]: Add
+ __attribute__((__force_align_arg_pointer__)).
+
+2016-03-02 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
+
+ * elf.c (backtrace_initialize): Properly initialize elf_fileline_fn to
+ avoid possible crash.
+ (elf_add): Don't set *fileline_fn to elf_nodebug value in case of
+ missing debug info anymore.
+
+2016-02-06 John David Anglin <danglin@gcc.gnu.org>
+
+ * mmap.c (MAP_FAILED): Define if not defined.
+
+2016-01-04 Jakub Jelinek <jakub@redhat.com>
+
+ Update copyright years.
+
+2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
+
+ * configure.ac: Specify that DJGPP do not have mmap
+ even when sys/mman.h exists.
+ * configure: Regenerate
+
+2015-12-09 John David Anglin <danglin@gcc.gnu.org>
+
+ PR libgfortran/68115
+ * configure.ac: Set libbacktrace_cv_sys_sync to no on hppa*-*-hpux*.
+ * configure: Regenerate.
+ * elf.c (backtrace_initialize): Cast __sync_bool_compare_and_swap call
+ to void.
+
+2015-09-17 Ian Lance Taylor <iant@google.com>
+
+ * posix.c (backtrace_open): Cast second argument of open() to int.
+
+2015-09-11 Ian Lance Taylor <iant@google.com>
+
+ * Makefile.am (backtrace.lo): Depend on internal.h.
+ (sort.lo, stest.lo): Add explicit dependencies.
+ * Makefile.in: Rebuild.
+
+2015-09-09 Hans-Peter Nilsson <hp@axis.com>
+
+ * backtrace.c: #include <sys/types.h>.
+
+2015-09-08 Ian Lance Taylor <iant@google.com>
+
+ PR other/67457
+ * backtrace.c: #include "internal.h".
+ (struct backtrace_data): Add can_alloc field.
+ (unwind): If can_alloc is false, don't try to get file/line
+ information.
+ (backtrace_full): Set can_alloc field in bdata.
+ * alloc.c (backtrace_alloc): Don't call error_callback if it is
+ NULL.
+ * mmap.c (backtrace_alloc): Likewise.
+ * internal.h: Update comments for backtrace_alloc and
+ backtrace_free.
+
+2015-09-08 Ian Lance Taylor <iant@google.com>
+
+ PR other/67457
+ * mmap.c (backtrace_alloc): Correct test for mmap failure.
+
+2015-08-31 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+
+ * configure.ac: For spu-*-* targets, set have_fcntl to no.
+ * configure: Regenerate.
+
+2015-08-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+
+ * configure.ac: Remove [disable-shared] argument to LT_INIT.
+ Remove setting PIC_FLAG when building as target library.
+ * configure: Regenerate.
+
+2015-08-26 Hans-Peter Nilsson <hp@axis.com>
+
+ * configure.ac: Only compile with -fPIC if the target
+ supports it.
+ * configure: Regenerate.
+
+2015-08-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
+
+ * configure.ac: Set have_mmap to no on spu-*-* targets.
+ * configure: Regenerate.
+
+2015-08-13 Ian Lance Taylor <iant@google.com>
+
+ * dwarf.c (read_function_entry): Add vec_inlined parameter.
+ Change all callers.
+
+2015-06-11 Martin Sebor <msebor@redhat.com>
+
+ PR sanitizer/65479
+ * dwarf.c (struct line): Add new field idx.
+ (line_compare): Use it.
+ (add_line): Set it.
+ (read_line_info): Reset it.
+
+2015-05-29 Tristan Gingold <gingold@adacore.com>
+
+ * pecoff.c: New file.
+ * Makefile.am (FORMAT_FILES): Add pecoff.c and dependencies.
+ * Makefile.in: Regenerate.
+ * filetype.awk: Detect pecoff.
+ * configure.ac: Define BACKTRACE_SUPPORTS_DATA on elf platforms.
+ Add pecoff.
+ * btest.c (test5): Test enabled only if BACKTRACE_SUPPORTS_DATA is
+ true.
+ * backtrace-supported.h.in (BACKTRACE_SUPPORTS_DATA): Define.
+ * configure: Regenerate.
+ * pecoff.c: New file.
+
+2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
+
+ * Makefile.in: Regenerated with automake-1.11.6.
+ * aclocal.m4: Likewise.
+ * configure: Likewise.
+
+2015-01-24 Matthias Klose <doko@ubuntu.com>
+
+ * configure.ac: Move AM_ENABLE_MULTILIB before AC_PROG_CC.
+ * configure: Regenerate.
+
+2015-01-05 Jakub Jelinek <jakub@redhat.com>
+
+ Update copyright years.
+
+2014-11-21 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR bootstrap/63784
+ * configure: Regenerated.
+
+2014-11-11 David Malcolm <dmalcolm@redhat.com>
+
+ * ChangeLog.jit: New.
+
+2014-11-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ PR target/63610
+ * configure: Regenerate.
+
+2014-10-23 Ian Lance Taylor <iant@google.com>
+
+ * internal.h (backtrace_atomic_load_pointer) [no atomic or sync]:
+ Fix to return void *.
+
+2014-05-08 Ian Lance Taylor <iant@google.com>
+
+ * mmap.c (backtrace_free): If freeing a large aligned block of
+ memory, call munmap rather than holding onto it.
+ (backtrace_vector_grow): When growing a vector, double the number
+ of pages requested. When releasing the old version of a grown
+ vector, pass the correct size to backtrace_free.
+
+2014-03-07 Ian Lance Taylor <iant@google.com>
+
+ * sort.c (backtrace_qsort): Use middle element as pivot.
+
+2014-03-06 Ian Lance Taylor <iant@google.com>
+
+ * sort.c: New file.
+ * stest.c: New file.
+ * internal.h (backtrace_qsort): Declare.
+ * dwarf.c (read_abbrevs): Call backtrace_qsort instead of qsort.
+ (read_line_info, read_function_entry): Likewise.
+ (read_function_info, build_dwarf_data): Likewise.
+ * elf.c (elf_initialize_syminfo): Likewise.
+ * Makefile.am (libbacktrace_la_SOURCES): Add sort.c.
+ (stest_SOURCES, stest_LDADD): Define.
+ (check_PROGRAMS): Add stest.
+
+2014-02-07 Misty De Meo <misty@brew.sh>
+
+ PR target/58710
+ * configure.ac: Use AC_LINK_IFELSE in check for
+ _Unwind_GetIPInfo.
+ * configure: Regenerate.
+
+2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
+
+ Update copyright years
+
+2013-12-06 Jakub Jelinek <jakub@redhat.com>
+
+ * elf.c (ET_DYN): Undefine and define again.
+ (elf_add): Add exe argument, if true and ehdr.e_type is ET_DYN,
+ return early -1 without closing the descriptor.
+ (struct phdr_data): Add exe_descriptor.
+ (phdr_callback): If pd->exe_descriptor is not -1, for very first
+ call if dlpi_name is NULL just call elf_add with the exe_descriptor,
+ otherwise backtrace_close the exe_descriptor if not -1. Adjust
+ call to elf_add.
+ (backtrace_initialize): Adjust call to elf_add. If it returns
+ -1, set pd.exe_descriptor to descriptor, otherwise set it to -1.
+
+2013-12-05 Ian Lance Taylor <iant@google.com>
+
+ * alloc.c (backtrace_vector_finish): Add error_callback and data
+ parameters. Call backtrace_vector_release. Return address base.
+ * mmap.c (backtrace_vector_finish): Add error_callback and data
+ parameters. Return address base.
+ * dwarf.c (read_function_info): Get new address base from
+ backtrace_vector_finish.
+ * internal.h (backtrace_vector_finish): Update declaration.
+
+2013-11-27 Ian Lance Taylor <iant@google.com>
+
+ * dwarf.c (find_address_ranges): New static function, broken out
+ of build_address_map.
+ (build_address_map): Call it.
+ * btest.c (check): Check for missing filename or function, rather
+ than crashing.
+ (f3): Check that enough frames were returned.
+
+2013-11-19 Jakub Jelinek <jakub@redhat.com>
+
+ * backtrace.h (backtrace_syminfo_callback): Add symsize argument.
+ * elf.c (elf_syminfo): Pass 0 or sym->size to the callback as
+ last argument.
+ * btest.c (struct symdata): Add size field.
+ (callback_three): Add symsize argument. Copy it to the data->size
+ field.
+ (f23): Set symdata.size to 0.
+ (test5): Likewise. If sizeof (int) > 1, lookup address of
+ ((uintptr_t) &global) + 1. Verify symdata.val and symdata.size
+ values.
+
+ * atomic.c: Include sys/types.h.
+
+2013-11-18 Ian Lance Taylor <iant@google.com>
+
+ * configure.ac: Check for support of __atomic extensions.
+ * internal.h: Declare or #define atomic functions for use in
+ backtrace code.
+ * atomic.c: New file.
+ * dwarf.c (dwarf_lookup_pc): Use atomic functions.
+ (dwarf_fileline, backtrace_dwarf_add): Likewise.
+ * elf.c (elf_add_syminfo_data, elf_syminfo): Likewise.
+ (backtrace_initialize): Likewise.
+ * fileline.c (fileline_initialize): Likewise.
+ * Makefile.am (libbacktrace_la_SOURCES): Add atomic.c.
+ * configure, config.h.in, Makefile.in: Rebuild.
+
+2013-11-18 Jakub Jelinek <jakub@redhat.com>
+
+ * elf.c (SHN_UNDEF): Define.
+ (elf_initialize_syminfo): Add base_address argument. Ignore symbols
+ with st_shndx == SHN_UNDEF. Add base_address to address fields.
+ (elf_add): Adjust caller.
+
+ * elf.c (phdr_callback): Process info->dlpi_addr == 0 normally.
+
+2013-11-16 Ian Lance Taylor <iant@google.com>
+
+ * backtrace.h (backtrace_create_state): Correct comment about
+ threading.
+
+2013-11-15 Ian Lance Taylor <iant@google.com>
+
+ * backtrace.h (backtrace_syminfo): Update comment and parameter
+ name to take any address, not just a PC value.
+ * elf.c (STT_OBJECT): Define.
+ (elf_nosyms): Rename parameter pc to addr.
+ (elf_symbol_search): Rename local variable pc to addr.
+ (elf_initialize_syminfo): Add STT_OBJECT symbols to elf_symbols.
+ (elf_syminfo): Rename parameter pc to addr.
+ * btest.c (global): New global variable.
+ (test5): New test.
+ (main): Call test5.
+
+2013-10-17 Ian Lance Taylor <iant@google.com>
+
+ * elf.c (elf_add): Don't get the wrong offsets if a debug section
+ is missing.
+
+2013-10-15 David Malcolm <dmalcolm@redhat.com>
+
+ * configure.ac: Add --enable-host-shared, setting up
+ pre-existing PIC_FLAG variable within Makefile.am et al.
+ * configure: Regenerate.
+
+2013-09-20 Alan Modra <amodra@gmail.com>
+
+ * configure: Regenerate.
+
+2013-07-23 Alexander Monakov <amonakov@ispras.ru>
+
+ * elf.c (elf_syminfo): Loop over the elf_syminfo_data chain.
+
+2013-07-23 Alexander Monakov <amonakov@ispras.ru>
+
+ * elf.c (backtrace_initialize): Pass elf_fileline_fn to
+ dl_iterate_phdr callbacks.
+
+2013-03-25 Ian Lance Taylor <iant@google.com>
+
+ * alloc.c: #include <sys/types.h>.
+ * mmap.c: Likewise.
+
+2013-01-31 Ian Lance Taylor <iant@google.com>
+
+ * dwarf.c (read_function_info): Permit fvec parameter to be NULL.
+ (dwarf_lookup_pc): Don't use ddata->fvec if threaded.
+
+2013-01-25 Jakub Jelinek <jakub@redhat.com>
+
+ PR other/56076
+ * dwarf.c (read_line_header): Don't crash if DW_AT_comp_dir
+ attribute was not seen.
+
+2013-01-16 Ian Lance Taylor <iant@google.com>
+
+ * dwarf.c (struct unit): Add filename and abs_filename fields.
+ (build_address_map): Set new fields when reading unit.
+ (dwarf_lookup_pc): If we don't find an entry in the line table,
+ just return the main file name.
+
+2013-01-14 Richard Sandiford <rdsandiford@googlemail.com>
+
+ Update copyright years.
+
+2013-01-01 Ian Lance Taylor <iant@google.com>
+
+ PR bootstrap/54834
+ * Makefile.am (AM_CPPFLAGS): Remove -I ../gcc/include and -I
+ $(MULTIBUILDTOP)/../../gcc/include.
+ * Makefile.in: Rebuild.
+
+2013-01-01 Ian Lance Taylor <iant@google.com>
+
+ PR other/55536
+ * mmap.c (backtrace_alloc): Don't call sync functions if not
+ threaded.
+ (backtrace_free): Likewise.
+
+2012-12-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
+
+ * mmapio.c: Define MAP_FAILED if not defined.
+
+2012-12-11 Jakub Jelinek <jakub@redhat.com>
+
+ PR bootstrap/54926
+ * Makefile.am (AM_CFLAGS): Remove -frandom-seed=$@.
+ * configure.ac: If --with-target-subdir, add -frandom-seed=$@
+ to EXTRA_FLAGS unconditionally, otherwise check whether the compiler
+ accepts it.
+ * Makefile.in: Regenerated.
+ * configure: Regenerated.
+
+2012-12-07 Jakub Jelinek <jakub@redhat.com>
+
+ PR bootstrap/54926
+ * Makefile.am (AM_CFLAGS): Add -frandom-seed=$@.
+ * Makefile.in: Regenerated.
+
+2012-11-20 Ian Lance Taylor <iant@google.com>
+
+ * dwarf.c (read_attribute): Always clear val.
+
+2012-11-13 Ian Lance Taylor <iant@google.com>
+
+ PR other/55312
+ * configure.ac: Only add -Werror if building a target library.
+ * configure: Rebuild.
+
+2012-11-12 Ian Lance Taylor <iant@google.com>
+ Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+ Gerald Pfeifer <gerald@pfeifer.com>
+
+ * configure.ac: Check for getexecname.
+ * fileline.c: #include <errno.h>. Define getexecname if not
+ available.
+ (fileline_initialize): Try to find the executable in a few
+ different ways.
+ * print.c (error_callback): Only print the filename if it came
+ from the backtrace state.
+ * configure, config.h.in: Rebuild.
+
+2012-10-29 Ian Lance Taylor <iant@google.com>
+
+ * mmap.c (backtrace_vector_release): Correct last patch: add
+ aligned, not size.
+
+2012-10-29 Ian Lance Taylor <iant@google.com>
+
+ * mmap.c (backtrace_vector_release): Make sure freed block is
+ aligned on 8-byte boundary.
+
+2012-10-26 Ian Lance Taylor <iant@google.com>
+
+ PR other/55087
+ * posix.c (backtrace_open): Add does_not_exist parameter.
+ * elf.c (phdr_callback): Do not warn if shared library could not
+ be opened.
+ * fileline.c (fileline_initialize): Update calls to
+ backtrace_open.
+ * internal.h (backtrace_open): Update declaration.
+
+2012-10-26 Jack Howarth <howarth@bromo.med.uc.edu>
+
+ PR target/55061
+ * configure.ac: Check for _Unwind_GetIPInfo function declaration.
+ * configure: Regenerate.
+
+2012-10-24 Ian Lance Taylor <iant@google.com>
+
+ PR target/55061
+ * configure.ac: Check whether -funwind-tables option works.
+ * configure: Rebuild.
+
+2012-10-11 Ian Lance Taylor <iant@google.com>
+
+ * configure.ac: Do not use dl_iterate_phdr on Solaris 10.
+ * configure: Rebuild.
+
+2012-10-10 Ian Lance Taylor <iant@google.com>
+
+ * elf.c: Rename all Elf typedefs to start with b_elf, and be all
+ lower case.
+
+2012-10-10 Hans-Peter Nilsson <hp@bitrange.com>
+
+ * elf.c (elf_add_syminfo_data): Add casts to avoid warning.
+
+2012-10-09 Ian Lance Taylor <iant@google.com>
+
+ * dwarf.c (dwarf_fileline): Add cast to avoid warning.
+ (backtrace_dwarf_add): Likewise.
+
+2012-10-09 Ian Lance Taylor <iant@google.com>
+
+ Add support for tracing through shared libraries.
+ * configure.ac: Check for link.h and dl_iterate_phdr.
+ * elf.c: #include <link.h> if system has dl_iterate_phdr. #undef
+ ELF macros before #defining them.
+ (dl_phdr_info, dl_iterate_phdr): Define if system does not have
+ dl_iterate_phdr.
+ (struct elf_syminfo_data): Add next field.
+ (elf_initialize_syminfo): Initialize next field.
+ (elf_add_syminfo_data): New static function.
+ (elf_add): New static function, broken out of
+ backtrace_initialize. Call backtrace_dwarf_add instead of
+ backtrace_dwarf_initialize.
+ (struct phdr_data): Define.
+ (phdr_callback): New static function.
+ (backtrace_initialize): Call elf_add.
+ * dwarf.c (struct dwarf_data): Add next and base_address fields.
+ (add_unit_addr): Add base_address parameter. Change all callers.
+ (add_unit_ranges, build_address_map): Likewise.
+ (add_line): Add ddata parameter. Change all callers.
+ (read_line_program, add_function_range): Likewise.
+ (dwarf_lookup_pc): New static function, broken out of
+ dwarf_fileline.
+ (dwarf_fileline): Call dwarf_lookup_pc.
+ (build_dwarf_data): New static function.
+ (backtrace_dwarf_add): New function.
+ (backtrace_dwarf_initialize): Remove.
+ * internal.h (backtrace_dwarf_initialize): Don't declare.
+ (backtrace_dwarf_add): Declare.
+ * configure, config.h.in: Rebuild.
+
+2012-10-04 Gerald Pfeifer <gerald@pfeifer.com>
+
+ * btest.c (f23): Avoid uninitialized variable warning.
+
+2012-10-04 Ian Lance Taylor <iant@google.com>
+
+ * dwarf.c: If the system header files do not declare strnlen,
+ provide our own version.
+
+2012-10-03 Ian Lance Taylor <iant@google.com>
+
+ * dwarf.c (read_uleb128): Fix overflow test.
+ (read_sleb128): Likewise.
+ (build_address_map): Don't change unit_buf.start.
+
+2012-10-02 Uros Bizjak <ubizjak@gmail.com>
+
+ PR other/54761
+ * configure.ac (EXTRA_FLAGS): New.
+ * Makefile.am (AM_FLAGS): Add $(EXTRA_FLAGS).
+ * configure, Makefile.in: Regenerate.
+
+2012-09-29 Ian Lance Taylor <iant@google.com>
+
+ PR other/54749
+ * fileline.c (fileline_initialize): Pass errnum as -1 when
+ reporting that we could not read executable information after a
+ previous failure.
+
+2012-09-27 Ian Lance Taylor <iant@google.com>
+
+ PR bootstrap/54732
+ * configure.ac: Add no-dependencies to AM_INIT_AUTOMAKE.
+ * Makefile.am: Add dependencies for all objects.
+ * configure, aclocal.m4, Makefile.in: Rebuild.
+
+2012-09-27 Ian Lance Taylor <iant@google.com>
+
+ PR other/54726
+ * elf.c (backtrace_initialize): Set *fileln_fn, not
+ state->fileln_fn.
+
+2012-09-19 Ian Lance Taylor <iant@google.com>
+
+ * configure.ac: Only use GCC_CHECK_UNWIND_GETIPINFO when compiled
+ as a target library.
+ * configure: Rebuild.
+
+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.
+
+2012-09-18 Ian Lance Taylor <iant@google.com>
+
+ PR bootstrap/54623
+ * Makefile.am (AM_CPPFLAGS): Define.
+ (AM_CFLAGS): Remove -I options.
+ * Makefile.in: Rebuild.
+
+2012-09-18 Ian Lance Taylor <iant@google.com>
+
+ * posix.c (O_BINARY): Define if not defined.
+ (backtrace_open): Pass O_BINARY to open. Only call fcntl if
+ HAVE_FCNTL is defined.
+ * configure.ac: Test for the fcntl function.
+ * configure, config.h.in: Rebuild.
+
+2012-09-18 Ian Lance Taylor <iant@google.com>
+
+ * btest.c (test1, test2, test3, test4): Add the unused attribute.
+
+2012-09-18 Ian Lance Taylor <iant@google.com>
+
+ * dwarf.c: Correct test of HAVE_DECL_STRNLEN.
+
+2012-09-18 Ian Lance Taylor <iant@google.com>
+
+ * configure.ac: Add AC_USE_SYSTEM_EXTENSIONS.
+ * mmapio.c: Don't define _GNU_SOURCE.
+ * configure, config.h.in: Rebuild.
+
+2012-09-18 Ian Lance Taylor <iant@google.com>
+
+ * configure.ac: Check whether strnlen is declared.
+ * dwarf.c: Declare strnlen if not declared.
+ * configure, config.h.in: Rebuild.
+
+2012-09-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * fileline.c: Include <stdlib.h>.
+ * mmap.c: Likewise.
+
+2012-09-17 Ian Lance Taylor <iant@google.com>
+
+ PR bootstrap/54611
+ * nounwind.c (backtrace_full): Rename from backtrace. Add state
+ parameter.
+
+2012-09-17 Gerald Pfeifer <gerald@pfeifer.com>
+
+ PR bootstrap/54611
+ * nounwind.c (backtrace_simple): Add state parameter.
+
+2012-09-17 Ian Lance Taylor <iant@google.com>
+
+ PR bootstrap/54609
+ * unknown.c (unknown_fileline): Add state parameter, remove
+ fileline_data parameter, name error_callback parameter.
+ (backtrace_initialize): Add state parameter.
+
+2012-09-17 Ian Lance Taylor <iant@google.com>
+
+ * Initial implementation.
+\f
+Copyright (C) 2012-2021 Free Software Foundation, Inc.
+
+Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved.
diff --git a/libbacktrace/ChangeLog.jit b/libbacktrace/ChangeLog.jit
new file mode 100644
index 00000000000..6b60e3b3b07
--- /dev/null
+++ b/libbacktrace/ChangeLog.jit
@@ -0,0 +1,14 @@
+2014-09-24 David Malcolm <dmalcolm@redhat.com>
+
+ * ChangeLog.jit: Add copyright footer.
+
+2013-10-03 David Malcolm <dmalcolm@redhat.com>
+
+ * configure.ac: Add --enable-host-shared.
+ * configure: Regenerate.
+\f
+Copyright (C) 2013-2014 Free Software Foundation, Inc.
+
+Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved.
diff --git a/libbacktrace/Makefile.am b/libbacktrace/Makefile.am
new file mode 100644
index 00000000000..8874f41338a
--- /dev/null
+++ b/libbacktrace/Makefile.am
@@ -0,0 +1,586 @@
+# Makefile.am -- Backtrace Makefile.
+# Copyright (C) 2012-2021 Free Software Foundation, Inc.
+
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+
+# (1) Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+
+# (2) Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+
+# (3) The name of the author may not be used to
+# endorse or promote products derived from this software without
+# specific prior written permission.
+
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
+# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+
+ACLOCAL_AMFLAGS = -I .. -I ../config
+
+AM_CPPFLAGS = -I $(top_srcdir)/../include -I $(top_srcdir)/../libgcc \
+ -I ../libgcc
+
+AM_CFLAGS = $(EXTRA_FLAGS) $(WARN_FLAGS) $(PIC_FLAG) $(CET_HOST_FLAGS)
+
+noinst_LTLIBRARIES = libbacktrace.la
+
+libbacktrace_la_SOURCES = \
+ backtrace.h \
+ atomic.c \
+ dwarf.c \
+ fileline.c \
+ internal.h \
+ posix.c \
+ print.c \
+ sort.c \
+ state.c
+
+BACKTRACE_FILES = \
+ backtrace.c \
+ simple.c \
+ nounwind.c
+
+FORMAT_FILES = \
+ elf.c \
+ macho.c \
+ pecoff.c \
+ unknown.c \
+ xcoff.c
+
+VIEW_FILES = \
+ read.c \
+ mmapio.c
+
+ALLOC_FILES = \
+ alloc.c \
+ mmap.c
+
+EXTRA_libbacktrace_la_SOURCES = \
+ $(BACKTRACE_FILES) \
+ $(FORMAT_FILES) \
+ $(VIEW_FILES) \
+ $(ALLOC_FILES)
+
+libbacktrace_la_LIBADD = \
+ $(BACKTRACE_FILE) \
+ $(FORMAT_FILE) \
+ $(VIEW_FILE) \
+ $(ALLOC_FILE)
+
+libbacktrace_la_DEPENDENCIES = $(libbacktrace_la_LIBADD)
+
+# Testsuite.
+
+# Add a test to this variable if you want it to be built.
+check_PROGRAMS =
+
+# Add a test to this variable if you want it to be run.
+TESTS =
+
+# Add a test to this variable if you want it to be built and run.
+BUILDTESTS =
+
+# Add a file to this variable if you want it to be built for testing.
+check_DATA =
+
+# Flags to use when compiling test programs.
+libbacktrace_TEST_CFLAGS = $(EXTRA_FLAGS) $(WARN_FLAGS) -g
+
+if USE_DSYMUTIL
+
+%.dSYM: %
+ $(DSYMUTIL) $<
+
+endif USE_DSYMUTIL
+
+if NATIVE
+check_LTLIBRARIES = libbacktrace_alloc.la
+
+libbacktrace_alloc_la_SOURCES = $(libbacktrace_la_SOURCES)
+libbacktrace_alloc_la_LIBADD = $(BACKTRACE_FILE) $(FORMAT_FILE) read.lo alloc.lo
+
+libbacktrace_alloc_la_DEPENDENCIES = $(libbacktrace_alloc_la_LIBADD)
+
+check_LTLIBRARIES += libbacktrace_noformat.la
+
+libbacktrace_noformat_la_SOURCES = $(libbacktrace_la_SOURCES)
+libbacktrace_noformat_la_LIBADD = $(BACKTRACE_FILE) $(VIEW_FILE) $(ALLOC_FILE)
+
+libbacktrace_noformat_la_DEPENDENCIES = $(libbacktrace_noformat_la_LIBADD)
+
+if HAVE_ELF
+if HAVE_OBJCOPY_DEBUGLINK
+
+TEST_BUILD_ID_DIR=$(abs_builddir)/usr/lib/debug/.build-id/
+
+check_LTLIBRARIES += libbacktrace_elf_for_test.la
+
+libbacktrace_elf_for_test_la_SOURCES = $(libbacktrace_la_SOURCES)
+libbacktrace_elf_for_test_la_LIBADD = $(BACKTRACE_FILE) elf_for_test.lo \
+ $(VIEW_FILE) $(ALLOC_FILE)
+
+elf_for_test.c: elf.c
+ SEARCH='^#define SYSTEM_BUILD_ID_DIR.*$$'; \
+ REPLACE="#define SYSTEM_BUILD_ID_DIR \"$(TEST_BUILD_ID_DIR)\""; \
+ $(SED) "s%$$SEARCH%$$REPLACE%" \
+ $< \
+ > $@.tmp
+ mv $@.tmp $@
+
+endif HAVE_OBJCOPY_DEBUGLINK
+endif HAVE_ELF
+
+elf_%.c: elf.c
+ SEARCH='#error "Unknown BACKTRACE_ELF_SIZE"'; \
+ REPLACE='#undef BACKTRACE_ELF_SIZE\
+ #define BACKTRACE_ELF_SIZE'; \
+ $(SED) "s/^$$SEARCH\$$/$$REPLACE $*/" \
+ $< \
+ > $@.tmp
+ mv $@.tmp $@
+
+xcoff_%.c: xcoff.c
+ SEARCH='#error "Unknown BACKTRACE_XCOFF_SIZE"'; \
+ REPLACE='#undef BACKTRACE_XCOFF_SIZE\
+ #define BACKTRACE_XCOFF_SIZE'; \
+ $(SED) "s/^$$SEARCH\$$/$$REPLACE $*/" \
+ $< \
+ > $@.tmp
+ mv $@.tmp $@
+
+test_elf_32_SOURCES = test_format.c testlib.c
+test_elf_32_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+test_elf_32_LDADD = libbacktrace_noformat.la elf_32.lo
+
+BUILDTESTS += test_elf_32
+
+test_elf_64_SOURCES = test_format.c testlib.c
+test_elf_64_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+test_elf_64_LDADD = libbacktrace_noformat.la elf_64.lo
+
+BUILDTESTS += test_elf_64
+
+test_macho_SOURCES = test_format.c testlib.c
+test_macho_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+test_macho_LDADD = libbacktrace_noformat.la macho.lo
+
+BUILDTESTS += test_macho
+
+test_xcoff_32_SOURCES = test_format.c testlib.c
+test_xcoff_32_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+test_xcoff_32_LDADD = libbacktrace_noformat.la xcoff_32.lo
+
+BUILDTESTS += test_xcoff_32
+
+test_xcoff_64_SOURCES = test_format.c testlib.c
+test_xcoff_64_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+test_xcoff_64_LDADD = libbacktrace_noformat.la xcoff_64.lo
+
+BUILDTESTS += test_xcoff_64
+
+test_pecoff_SOURCES = test_format.c testlib.c
+test_pecoff_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+test_pecoff_LDADD = libbacktrace_noformat.la pecoff.lo
+
+BUILDTESTS += test_pecoff
+
+test_unknown_SOURCES = test_format.c testlib.c
+test_unknown_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+test_unknown_LDADD = libbacktrace_noformat.la unknown.lo
+
+BUILDTESTS += test_unknown
+
+unittest_SOURCES = unittest.c testlib.c
+unittest_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+unittest_LDADD = libbacktrace.la
+
+BUILDTESTS += unittest
+
+unittest_alloc_SOURCES = $(unittest_SOURCES)
+unittest_alloc_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+unittest_alloc_LDADD = libbacktrace_alloc.la
+
+BUILDTESTS += unittest_alloc
+
+check_LTLIBRARIES += libbacktrace_instrumented_alloc.la
+
+libbacktrace_instrumented_alloc_la_SOURCES = $(libbacktrace_la_SOURCES)
+libbacktrace_instrumented_alloc_la_LIBADD = $(BACKTRACE_FILE) $(FORMAT_FILE) \
+ read.lo instrumented_alloc.lo
+
+libbacktrace_instrumented_alloc_la_DEPENDENCIES = \
+ $(libbacktrace_instrumented_alloc_la_LIBADD)
+
+instrumented_alloc.lo: alloc.c
+
+allocfail_SOURCES = allocfail.c testlib.c
+allocfail_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+allocfail_LDADD = libbacktrace_instrumented_alloc.la
+
+check_PROGRAMS += allocfail
+
+allocfail.sh: allocfail
+
+TESTS += allocfail.sh
+
+if USE_DSYMUTIL
+check_DATA += allocfail.dSYM
+endif USE_DSYMUTIL
+
+if HAVE_ELF
+if HAVE_OBJCOPY_DEBUGLINK
+
+b2test_SOURCES = $(btest_SOURCES)
+b2test_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+b2test_LDFLAGS = -Wl,--build-id
+b2test_LDADD = libbacktrace_elf_for_test.la
+
+check_PROGRAMS += b2test
+TESTS += b2test_buildid
+
+if HAVE_DWZ
+
+b3test_SOURCES = $(btest_SOURCES)
+b3test_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+b3test_LDFLAGS = -Wl,--build-id
+b3test_LDADD = libbacktrace_elf_for_test.la
+
+check_PROGRAMS += b3test
+TESTS += b3test_dwz_buildid
+
+endif HAVE_DWZ
+
+endif HAVE_OBJCOPY_DEBUGLINK
+endif HAVE_ELF
+
+btest_SOURCES = btest.c testlib.c
+btest_CFLAGS = $(libbacktrace_TEST_CFLAGS) -O
+btest_LDADD = libbacktrace.la
+
+BUILDTESTS += btest
+
+if USE_DSYMUTIL
+check_DATA += btest.dSYM
+endif USE_DSYMUTIL
+
+if HAVE_ELF
+
+btest_lto_SOURCES = btest.c testlib.c
+btest_lto_CFLAGS = $(libbacktrace_TEST_CFLAGS) -O -flto
+btest_lto_LDADD = libbacktrace.la
+
+BUILDTESTS += btest_lto
+
+endif HAVE_ELF
+
+btest_alloc_SOURCES = $(btest_SOURCES)
+btest_alloc_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+btest_alloc_LDADD = libbacktrace_alloc.la
+
+BUILDTESTS += btest_alloc
+
+if USE_DSYMUTIL
+check_DATA += btest_alloc.dSYM
+endif USE_DSYMUTIL
+
+if HAVE_DWZ
+
+%_dwz: %
+ rm -f $@ $@_common.debug
+ cp $< $@_1
+ cp $< $@_2
+ if $(DWZ) -m $@_common.debug $@_1 $@_2; then \
+ rm -f $@_2; \
+ mv $@_1 $@; \
+ else \
+ echo "Ignoring dwz errors, assuming that test passes"; \
+ cp $< $@; \
+ fi
+
+TESTS += btest_dwz
+
+if HAVE_OBJCOPY_DEBUGLINK
+
+TESTS += btest_dwz_gnudebuglink
+
+endif HAVE_OBJCOPY_DEBUGLINK
+
+endif HAVE_DWZ
+
+stest_SOURCES = stest.c
+stest_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+stest_LDADD = libbacktrace.la
+
+BUILDTESTS += stest
+
+if USE_DSYMUTIL
+check_DATA += stest.dSYM
+endif USE_DSYMUTIL
+
+stest_alloc_SOURCES = $(stest_SOURCES)
+stest_alloc_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+stest_alloc_LDADD = libbacktrace_alloc.la
+
+BUILDTESTS += stest_alloc
+
+if USE_DSYMUTIL
+check_DATA += stest_alloc.dSYM
+endif USE_DSYMUTIL
+
+if HAVE_ELF
+
+ztest_SOURCES = ztest.c testlib.c
+ztest_CFLAGS = $(libbacktrace_TEST_CFLAGS) -DSRCDIR=\"$(srcdir)\"
+ztest_LDADD = libbacktrace.la
+ztest_alloc_LDADD = libbacktrace_alloc.la
+
+if HAVE_ZLIB
+ztest_LDADD += -lz
+ztest_alloc_LDADD += -lz
+endif
+ztest_LDADD += $(CLOCK_GETTIME_LINK)
+ztest_alloc_LDADD += $(CLOCK_GETTIME_LINK)
+
+BUILDTESTS += ztest
+
+ztest_alloc_SOURCES = $(ztest_SOURCES)
+ztest_alloc_CFLAGS = $(ztest_CFLAGS)
+
+BUILDTESTS += ztest_alloc
+
+endif HAVE_ELF
+
+edtest_SOURCES = edtest.c edtest2_build.c testlib.c
+edtest_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+edtest_LDADD = libbacktrace.la
+
+BUILDTESTS += edtest
+
+if USE_DSYMUTIL
+check_DATA += edtest.dSYM
+endif USE_DSYMUTIL
+
+edtest_alloc_SOURCES = $(edtest_SOURCES)
+edtest_alloc_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+edtest_alloc_LDADD = libbacktrace_alloc.la
+
+if USE_DSYMUTIL
+check_DATA += edtest_alloc.dSYM
+endif USE_DSYMUTIL
+
+BUILDTESTS += edtest_alloc
+
+edtest2_build.c: gen_edtest2_build; @true
+gen_edtest2_build: $(srcdir)/edtest2.c
+ cat $(srcdir)/edtest2.c > tmp-edtest2_build.c
+ $(SHELL) $(srcdir)/../move-if-change tmp-edtest2_build.c edtest2_build.c
+ echo timestamp > $@
+
+if HAVE_PTHREAD
+
+BUILDTESTS += ttest
+
+ttest_SOURCES = ttest.c testlib.c
+ttest_CFLAGS = $(libbacktrace_TEST_CFLAGS) -pthread
+ttest_LDADD = libbacktrace.la
+
+if USE_DSYMUTIL
+check_DATA += ttest.dSYM
+endif USE_DSYMUTIL
+
+BUILDTESTS += ttest_alloc
+
+ttest_alloc_SOURCES = $(ttest_SOURCES)
+ttest_alloc_CFLAGS = $(ttest_CFLAGS)
+ttest_alloc_LDADD = libbacktrace_alloc.la
+
+if USE_DSYMUTIL
+check_DATA += ttest_alloc.dSYM
+endif USE_DSYMUTIL
+
+endif HAVE_PTHREAD
+
+if HAVE_OBJCOPY_DEBUGLINK
+
+TESTS += btest_gnudebuglink
+
+%_gnudebuglink: %
+ $(OBJCOPY) --only-keep-debug $< $@.debug
+ $(OBJCOPY) --strip-debug --add-gnu-debuglink=$@.debug $< $@
+
+endif HAVE_OBJCOPY_DEBUGLINK
+
+%_buildid: %
+ ./install-debuginfo-for-buildid.sh \
+ "$(TEST_BUILD_ID_DIR)" \
+ $<
+ $(OBJCOPY) --strip-debug $< $@
+
+if HAVE_COMPRESSED_DEBUG
+
+ctestg_SOURCES = btest.c testlib.c
+ctestg_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+ctestg_LDFLAGS = -Wl,--compress-debug-sections=zlib-gnu
+ctestg_LDADD = libbacktrace.la
+
+ctesta_SOURCES = btest.c testlib.c
+ctesta_CFLAGS = $(libbacktrace_TEST_CFLAGS)
+ctesta_LDFLAGS = -Wl,--compress-debug-sections=zlib-gabi
+ctesta_LDADD = libbacktrace.la
+
+BUILDTESTS += ctestg ctesta
+
+ctestg_alloc_SOURCES = $(ctestg_SOURCES)
+ctestg_alloc_CFLAGS = $(ctestg_CFLAGS)
+ctestg_alloc_LDFLAGS = $(ctestg_LDFLAGS)
+ctestg_alloc_LDADD = libbacktrace_alloc.la
+
+ctesta_alloc_SOURCES = $(ctesta_SOURCES)
+ctesta_alloc_CFLAGS = $(ctesta_CFLAGS)
+ctesta_alloc_LDFLAGS = $(ctesta_LDFLAGS)
+ctesta_alloc_LDADD = libbacktrace_alloc.la
+
+BUILDTESTS += ctestg_alloc ctesta_alloc
+
+endif
+
+if HAVE_DWARF5
+
+dwarf5_SOURCES = btest.c testlib.c
+dwarf5_CFLAGS = $(libbacktrace_TEST_CFLAGS) -gdwarf-5
+dwarf5_LDADD = libbacktrace.la
+
+BUILDTESTS += dwarf5
+
+if USE_DSYMUTIL
+check_DATA += dwarf5.dSYM
+endif USE_DSYMUTIL
+
+dwarf5_alloc_SOURCES = $(dwarf5_SOURCES)
+dwarf5_alloc_CFLAGS = $(dwarf5_CFLAGS)
+dwarf5_alloc_LDADD = libbacktrace_alloc.la
+
+BUILDTESTS += dwarf5_alloc
+
+if USE_DSYMUTIL
+check_DATA += dwarf5_alloc.dSYM
+endif USE_DSYMUTIL
+
+endif
+
+mtest_SOURCES = mtest.c testlib.c
+mtest_CFLAGS = $(libbacktrace_TEST_CFLAGS) -O
+mtest_LDADD = libbacktrace.la
+
+BUILDTESTS += mtest
+
+if USE_DSYMUTIL
+check_DATA += mtest.dSYM
+endif USE_DSYMUTIL
+
+if HAVE_MINIDEBUG
+
+TESTS += mtest_minidebug
+
+%_minidebug: %
+ $(NM) -D $< -P --defined-only | $(AWK) '{ print $$1 }' | sort > $<.dsyms
+ $(NM) $< -P --defined-only | $(AWK) '{ if ($$2 == "T" || $$2 == "t" || $$2 == "D") print $$1 }' | sort > $<.fsyms
+ $(COMM) -13 $<.dsyms $<.fsyms > $<.keepsyms
+ $(OBJCOPY) --only-keep-debug $< $<.dbg
+ $(OBJCOPY) -S --remove-section .gdb_index --remove-section .comment --keep-symbols=$<.keepsyms $<.dbg $<.mdbg
+ $(OBJCOPY) --strip-all --remove-section ..comment $< $<.strip
+ rm -f $<.mdbg.xz
+ $(XZ) $<.mdbg
+ $(OBJCOPY) --add-section .gnu_debugdata=$<.mdbg.xz $<.strip
+ mv $<.strip $@
+
+endif HAVE_MINIDEBUG
+
+endif NATIVE
+
+if HAVE_ELF
+
+xztest_SOURCES = xztest.c testlib.c
+xztest_CFLAGS = $(libbacktrace_TEST_CFLAGS) -DSRCDIR=\"$(srcdir)\"
+xztest_LDADD = libbacktrace.la
+
+xztest_alloc_SOURCES = $(xztest_SOURCES)
+xztest_alloc_CFLAGS = $(xztest_CFLAGS)
+xztest_alloc_LDADD = libbacktrace_alloc.la
+
+if HAVE_LIBLZMA
+xztest_LDADD += -llzma
+xztest_alloc_LDADD += -llzma
+endif
+
+xztest_LDADD += $(CLOCK_GETTIME_LINK)
+xztest_alloc_LDADD += $(CLOCK_GETTIME_LINK)
+
+BUILDTESTS += xztest xztest_alloc
+
+endif HAVE_ELF
+
+check_PROGRAMS += $(BUILDTESTS)
+
+TESTS += $(BUILDTESTS)
+
+CLEANFILES = \
+ $(TESTS) *.debug elf_for_test.c edtest2_build.c gen_edtest2_build \
+ *.dsyms *.fsyms *.keepsyms *.dbg *.mdbg *.mdbg.xz *.strip
+
+clean-local:
+ -rm -rf usr
+
+# We can't use automake's automatic dependency tracking, because it
+# breaks when using bootstrap-lean. Automatic dependency tracking
+# with GCC bootstrap will cause some of the objects to depend on
+# header files in prev-gcc/include, e.g., stddef.h and stdarg.h. When
+# using bootstrap-lean, prev-gcc is removed after each stage. When
+# running "make install", those header files will be gone, causing the
+# library to be rebuilt at install time. That may not succeed.
+
+# These manual dependencies do not include dependencies on unwind.h,
+# even though that is part of GCC, because where to find it depends on
+# whether we are being built as a host library or a target library.
+
+INCDIR = $(top_srcdir)/../include
+alloc.lo: config.h backtrace.h internal.h
+backtrace.lo: config.h backtrace.h internal.h
+btest.lo: $(INCDIR)/filenames.h backtrace.h backtrace-supported.h
+dwarf.lo: config.h $(INCDIR)/dwarf2.h $(INCDIR)/dwarf2.def \
+ $(INCDIR)/filenames.h backtrace.h internal.h
+elf.lo: config.h backtrace.h internal.h
+fileline.lo: config.h backtrace.h internal.h
+macho.lo: config.h backtrace.h internal.h
+mmap.lo: config.h backtrace.h internal.h
+mmapio.lo: config.h backtrace.h internal.h
+mtest.lo: backtrace.h backtrace-supported.h
+nounwind.lo: config.h internal.h
+pecoff.lo: config.h backtrace.h internal.h
+posix.lo: config.h backtrace.h internal.h
+print.lo: config.h backtrace.h internal.h
+read.lo: config.h backtrace.h internal.h
+simple.lo: config.h backtrace.h internal.h
+sort.lo: config.h backtrace.h internal.h
+stest.lo: config.h backtrace.h internal.h
+state.lo: config.h backtrace.h backtrace-supported.h internal.h
+unknown.lo: config.h backtrace.h internal.h
+xcoff.lo: config.h backtrace.h internal.h
+xztest.lo: config.h backtrace.h backtrace-supported.h internal.h testlib.h
+ztest.lo: config.h backtrace.h backtrace-supported.h internal.h testlib.h
+
+include $(top_srcdir)/../multilib.am
diff --git a/libbacktrace/Makefile.in b/libbacktrace/Makefile.in
new file mode 100644
index 00000000000..2ba8dfa8428
--- /dev/null
+++ b/libbacktrace/Makefile.in
@@ -0,0 +1,2528 @@
+# Makefile.in generated by automake 1.15.1 from Makefile.am.
+# @configure_input@
+
+# Copyright (C) 1994-2017 Free Software Foundation, Inc.
+
+# This Makefile.in is free software; the Free Software Foundation
+# gives unlimited permission to copy and/or distribute it,
+# with or without modifications, as long as this notice is preserved.
+
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+# PARTICULAR PURPOSE.
+
+@SET_MAKE@
+
+# Makefile.am -- Backtrace Makefile.
+# Copyright (C) 2012-2021 Free Software Foundation, Inc.
+
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are
+# met:
+
+# (1) Redistributions of source code must retain the above copyright
+# notice, this list of conditions and the following disclaimer.
+
+# (2) Redistributions in binary form must reproduce the above copyright
+# notice, this list of conditions and the following disclaimer in
+# the documentation and/or other materials provided with the
+# distribution.
+
+# (3) The name of the author may not be used to
+# endorse or promote products derived from this software without
+# specific prior written permission.
+
+# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+# WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
+# INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+# (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
+# IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+# POSSIBILITY OF SUCH DAMAGE.
+
+VPATH = @srcdir@
+am__is_gnu_make = { \
+ if test -z '$(MAKELEVEL)'; then \
+ false; \
+ elif test -n '$(MAKE_HOST)'; then \
+ true; \
+ elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
+ true; \
+ else \
+ false; \
+ fi; \
+}
+am__make_running_with_option = \
+ case $${target_option-} in \
+ ?) ;; \
+ *) echo "am__make_running_with_option: internal error: invalid" \
+ "target option '$${target_option-}' specified" >&2; \
+ exit 1;; \
+ esac; \
+ has_opt=no; \
+ sane_makeflags=$$MAKEFLAGS; \
+ if $(am__is_gnu_make); then \
+ sane_makeflags=$$MFLAGS; \
+ else \
+ case $$MAKEFLAGS in \
+ *\\[\ \ ]*) \
+ bs=\\; \
+ sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
+ | sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
+ esac; \
+ fi; \
+ skip_next=no; \
+ strip_trailopt () \
+ { \
+ flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
+ }; \
+ for flg in $$sane_makeflags; do \
+ test $$skip_next = yes && { skip_next=no; continue; }; \
+ case $$flg in \
+ *=*|--*) continue;; \
+ -*I) strip_trailopt 'I'; skip_next=yes;; \
+ -*I?*) strip_trailopt 'I';; \
+ -*O) strip_trailopt 'O'; skip_next=yes;; \
+ -*O?*) strip_trailopt 'O';; \
+ -*l) strip_trailopt 'l'; skip_next=yes;; \
+ -*l?*) strip_trailopt 'l';; \
+ -[dEDm]) skip_next=yes;; \
+ -[JT]) skip_next=yes;; \
+ esac; \
+ case $$flg in \
+ *$$target_option*) has_opt=yes; break;; \
+ esac; \
+ done; \
+ test $$has_opt = yes
+am__make_dryrun = (target_option=n; $(am__make_running_with_option))
+am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
+pkgdatadir = $(datadir)/@PACKAGE@
+pkgincludedir = $(includedir)/@PACKAGE@
+pkglibdir = $(libdir)/@PACKAGE@
+pkglibexecdir = $(libexecdir)/@PACKAGE@
+am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
+install_sh_DATA = $(install_sh) -c -m 644
+install_sh_PROGRAM = $(install_sh) -c
+install_sh_SCRIPT = $(install_sh) -c
+INSTALL_HEADER = $(INSTALL_DATA)
+transform = $(program_transform_name)
+NORMAL_INSTALL = :
+PRE_INSTALL = :
+POST_INSTALL = :
+NORMAL_UNINSTALL = :
+PRE_UNINSTALL = :
+POST_UNINSTALL = :
+build_triplet = @build@
+host_triplet = @host@
+target_triplet = @target@
+check_PROGRAMS = $(am__EXEEXT_1) $(am__EXEEXT_2) $(am__EXEEXT_3) \
+ $(am__EXEEXT_14)
+TESTS = $(am__append_4) $(am__append_7) $(am__append_9) \
+ $(am__append_12) $(am__append_13) $(am__append_20) \
+ $(am__append_26) $(am__EXEEXT_14)
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__append_1 = libbacktrace_elf_for_test.la
+@NATIVE_TRUE@am__append_2 = test_elf_32 test_elf_64 test_macho \
+@NATIVE_TRUE@ test_xcoff_32 test_xcoff_64 test_pecoff \
+@NATIVE_TRUE@ test_unknown unittest unittest_alloc btest
+@NATIVE_TRUE@am__append_3 = allocfail
+@NATIVE_TRUE@am__append_4 = allocfail.sh
+@NATIVE_TRUE@@USE_DSYMUTIL_TRUE@am__append_5 = allocfail.dSYM \
+@NATIVE_TRUE@@USE_DSYMUTIL_TRUE@ btest.dSYM btest_alloc.dSYM \
+@NATIVE_TRUE@@USE_DSYMUTIL_TRUE@ stest.dSYM stest_alloc.dSYM \
+@NATIVE_TRUE@@USE_DSYMUTIL_TRUE@ edtest.dSYM edtest_alloc.dSYM
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__append_6 = b2test
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__append_7 = b2test_buildid
+@HAVE_DWZ_TRUE@@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__append_8 = b3test
+@HAVE_DWZ_TRUE@@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__append_9 = b3test_dwz_buildid
+@HAVE_ELF_TRUE@@NATIVE_TRUE@am__append_10 = btest_lto
+@NATIVE_TRUE@am__append_11 = btest_alloc stest stest_alloc
+@HAVE_DWZ_TRUE@@NATIVE_TRUE@am__append_12 = btest_dwz
+@HAVE_DWZ_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__append_13 = btest_dwz_gnudebuglink
+@HAVE_ELF_TRUE@@HAVE_ZLIB_TRUE@@NATIVE_TRUE@am__append_14 = -lz
+@HAVE_ELF_TRUE@@HAVE_ZLIB_TRUE@@NATIVE_TRUE@am__append_15 = -lz
+@HAVE_ELF_TRUE@@NATIVE_TRUE@am__append_16 = ztest ztest_alloc
+@NATIVE_TRUE@am__append_17 = edtest edtest_alloc
+@HAVE_PTHREAD_TRUE@@NATIVE_TRUE@am__append_18 = ttest ttest_alloc
+@HAVE_PTHREAD_TRUE@@NATIVE_TRUE@@USE_DSYMUTIL_TRUE@am__append_19 = \
+@HAVE_PTHREAD_TRUE@@NATIVE_TRUE@@USE_DSYMUTIL_TRUE@ ttest.dSYM \
+@HAVE_PTHREAD_TRUE@@NATIVE_TRUE@@USE_DSYMUTIL_TRUE@ ttest_alloc.dSYM
+@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__append_20 = btest_gnudebuglink
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@am__append_21 = ctestg ctesta \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctestg_alloc \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctesta_alloc
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@am__append_22 = dwarf5 dwarf5_alloc
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@@USE_DSYMUTIL_TRUE@am__append_23 = \
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@@USE_DSYMUTIL_TRUE@ dwarf5.dSYM \
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@@USE_DSYMUTIL_TRUE@ dwarf5_alloc.dSYM
+@NATIVE_TRUE@am__append_24 = mtest
+@NATIVE_TRUE@@USE_DSYMUTIL_TRUE@am__append_25 = mtest.dSYM
+@HAVE_MINIDEBUG_TRUE@@NATIVE_TRUE@am__append_26 = mtest_minidebug
+@HAVE_ELF_TRUE@@HAVE_LIBLZMA_TRUE@am__append_27 = -llzma
+@HAVE_ELF_TRUE@@HAVE_LIBLZMA_TRUE@am__append_28 = -llzma
+@HAVE_ELF_TRUE@am__append_29 = xztest xztest_alloc
+subdir = .
+ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+am__aclocal_m4_deps = $(top_srcdir)/../config/cet.m4 \
+ $(top_srcdir)/../config/enable.m4 \
+ $(top_srcdir)/../config/lead-dot.m4 \
+ $(top_srcdir)/../config/multi.m4 \
+ $(top_srcdir)/../config/override.m4 \
+ $(top_srcdir)/../config/stdint.m4 \
+ $(top_srcdir)/../config/unwind_ipinfo.m4 \
+ $(top_srcdir)/../config/warnings.m4 \
+ $(top_srcdir)/../libtool.m4 $(top_srcdir)/../ltoptions.m4 \
+ $(top_srcdir)/../ltsugar.m4 $(top_srcdir)/../ltversion.m4 \
+ $(top_srcdir)/../lt~obsolete.m4 $(top_srcdir)/configure.ac
+am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
+ $(ACLOCAL_M4)
+DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \
+ $(am__configure_deps)
+am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
+ configure.lineno config.status.lineno
+mkinstalldirs = $(SHELL) $(top_srcdir)/../mkinstalldirs
+CONFIG_HEADER = config.h
+CONFIG_CLEAN_FILES = backtrace-supported.h \
+ install-debuginfo-for-buildid.sh
+CONFIG_CLEAN_VPATH_FILES =
+LTLIBRARIES = $(noinst_LTLIBRARIES)
+am__DEPENDENCIES_1 =
+am_libbacktrace_la_OBJECTS = atomic.lo dwarf.lo fileline.lo posix.lo \
+ print.lo sort.lo state.lo
+libbacktrace_la_OBJECTS = $(am_libbacktrace_la_OBJECTS)
+AM_V_lt = $(am__v_lt_@AM_V@)
+am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
+am__v_lt_0 = --silent
+am__v_lt_1 =
+am__objects_1 = atomic.lo dwarf.lo fileline.lo posix.lo print.lo \
+ sort.lo state.lo
+@NATIVE_TRUE@am_libbacktrace_alloc_la_OBJECTS = $(am__objects_1)
+libbacktrace_alloc_la_OBJECTS = $(am_libbacktrace_alloc_la_OBJECTS)
+@NATIVE_TRUE@am_libbacktrace_alloc_la_rpath =
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@libbacktrace_elf_for_test_la_DEPENDENCIES = $(am__DEPENDENCIES_1) \
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ elf_for_test.lo \
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ $(am__DEPENDENCIES_1) \
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@ $(am__DEPENDENCIES_1)
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am_libbacktrace_elf_for_test_la_OBJECTS = $(am__objects_1)
+libbacktrace_elf_for_test_la_OBJECTS = \
+ $(am_libbacktrace_elf_for_test_la_OBJECTS)
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am_libbacktrace_elf_for_test_la_rpath =
+@NATIVE_TRUE@am_libbacktrace_instrumented_alloc_la_OBJECTS = \
+@NATIVE_TRUE@ $(am__objects_1)
+libbacktrace_instrumented_alloc_la_OBJECTS = \
+ $(am_libbacktrace_instrumented_alloc_la_OBJECTS)
+@NATIVE_TRUE@am_libbacktrace_instrumented_alloc_la_rpath =
+@NATIVE_TRUE@am_libbacktrace_noformat_la_OBJECTS = $(am__objects_1)
+libbacktrace_noformat_la_OBJECTS = \
+ $(am_libbacktrace_noformat_la_OBJECTS)
+@NATIVE_TRUE@am_libbacktrace_noformat_la_rpath =
+@NATIVE_TRUE@am__EXEEXT_1 = allocfail$(EXEEXT)
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__EXEEXT_2 = b2test$(EXEEXT)
+@HAVE_DWZ_TRUE@@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am__EXEEXT_3 = b3test$(EXEEXT)
+@NATIVE_TRUE@am__EXEEXT_4 = test_elf_32$(EXEEXT) test_elf_64$(EXEEXT) \
+@NATIVE_TRUE@ test_macho$(EXEEXT) test_xcoff_32$(EXEEXT) \
+@NATIVE_TRUE@ test_xcoff_64$(EXEEXT) test_pecoff$(EXEEXT) \
+@NATIVE_TRUE@ test_unknown$(EXEEXT) unittest$(EXEEXT) \
+@NATIVE_TRUE@ unittest_alloc$(EXEEXT) btest$(EXEEXT)
+@HAVE_ELF_TRUE@@NATIVE_TRUE@am__EXEEXT_5 = btest_lto$(EXEEXT)
+@NATIVE_TRUE@am__EXEEXT_6 = btest_alloc$(EXEEXT) stest$(EXEEXT) \
+@NATIVE_TRUE@ stest_alloc$(EXEEXT)
+@HAVE_ELF_TRUE@@NATIVE_TRUE@am__EXEEXT_7 = ztest$(EXEEXT) \
+@HAVE_ELF_TRUE@@NATIVE_TRUE@ ztest_alloc$(EXEEXT)
+@NATIVE_TRUE@am__EXEEXT_8 = edtest$(EXEEXT) edtest_alloc$(EXEEXT)
+@HAVE_PTHREAD_TRUE@@NATIVE_TRUE@am__EXEEXT_9 = ttest$(EXEEXT) \
+@HAVE_PTHREAD_TRUE@@NATIVE_TRUE@ ttest_alloc$(EXEEXT)
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@am__EXEEXT_10 = \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctestg$(EXEEXT) \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctesta$(EXEEXT) \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctestg_alloc$(EXEEXT) \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctesta_alloc$(EXEEXT)
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@am__EXEEXT_11 = dwarf5$(EXEEXT) \
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@ dwarf5_alloc$(EXEEXT)
+@NATIVE_TRUE@am__EXEEXT_12 = mtest$(EXEEXT)
+@HAVE_ELF_TRUE@am__EXEEXT_13 = xztest$(EXEEXT) xztest_alloc$(EXEEXT)
+am__EXEEXT_14 = $(am__EXEEXT_4) $(am__EXEEXT_5) $(am__EXEEXT_6) \
+ $(am__EXEEXT_7) $(am__EXEEXT_8) $(am__EXEEXT_9) \
+ $(am__EXEEXT_10) $(am__EXEEXT_11) $(am__EXEEXT_12) \
+ $(am__EXEEXT_13)
+@NATIVE_TRUE@am_allocfail_OBJECTS = allocfail-allocfail.$(OBJEXT) \
+@NATIVE_TRUE@ allocfail-testlib.$(OBJEXT)
+allocfail_OBJECTS = $(am_allocfail_OBJECTS)
+@NATIVE_TRUE@allocfail_DEPENDENCIES = \
+@NATIVE_TRUE@ libbacktrace_instrumented_alloc.la
+allocfail_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(allocfail_CFLAGS) \
+ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+@NATIVE_TRUE@am__objects_2 = b2test-btest.$(OBJEXT) \
+@NATIVE_TRUE@ b2test-testlib.$(OBJEXT)
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am_b2test_OBJECTS = $(am__objects_2)
+b2test_OBJECTS = $(am_b2test_OBJECTS)
+@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@b2test_DEPENDENCIES = libbacktrace_elf_for_test.la
+b2test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(b2test_CFLAGS) $(CFLAGS) \
+ $(b2test_LDFLAGS) $(LDFLAGS) -o $@
+@NATIVE_TRUE@am__objects_3 = b3test-btest.$(OBJEXT) \
+@NATIVE_TRUE@ b3test-testlib.$(OBJEXT)
+@HAVE_DWZ_TRUE@@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@am_b3test_OBJECTS = $(am__objects_3)
+b3test_OBJECTS = $(am_b3test_OBJECTS)
+@HAVE_DWZ_TRUE@@HAVE_ELF_TRUE@@HAVE_OBJCOPY_DEBUGLINK_TRUE@@NATIVE_TRUE@b3test_DEPENDENCIES = libbacktrace_elf_for_test.la
+b3test_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(b3test_CFLAGS) $(CFLAGS) \
+ $(b3test_LDFLAGS) $(LDFLAGS) -o $@
+@NATIVE_TRUE@am_btest_OBJECTS = btest-btest.$(OBJEXT) \
+@NATIVE_TRUE@ btest-testlib.$(OBJEXT)
+btest_OBJECTS = $(am_btest_OBJECTS)
+@NATIVE_TRUE@btest_DEPENDENCIES = libbacktrace.la
+btest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(btest_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+@NATIVE_TRUE@am__objects_4 = btest_alloc-btest.$(OBJEXT) \
+@NATIVE_TRUE@ btest_alloc-testlib.$(OBJEXT)
+@NATIVE_TRUE@am_btest_alloc_OBJECTS = $(am__objects_4)
+btest_alloc_OBJECTS = $(am_btest_alloc_OBJECTS)
+@NATIVE_TRUE@btest_alloc_DEPENDENCIES = libbacktrace_alloc.la
+btest_alloc_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(btest_alloc_CFLAGS) \
+ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_ELF_TRUE@@NATIVE_TRUE@am_btest_lto_OBJECTS = \
+@HAVE_ELF_TRUE@@NATIVE_TRUE@ btest_lto-btest.$(OBJEXT) \
+@HAVE_ELF_TRUE@@NATIVE_TRUE@ btest_lto-testlib.$(OBJEXT)
+btest_lto_OBJECTS = $(am_btest_lto_OBJECTS)
+@HAVE_ELF_TRUE@@NATIVE_TRUE@btest_lto_DEPENDENCIES = libbacktrace.la
+btest_lto_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(btest_lto_CFLAGS) \
+ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@am_ctesta_OBJECTS = ctesta-btest.$(OBJEXT) \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctesta-testlib.$(OBJEXT)
+ctesta_OBJECTS = $(am_ctesta_OBJECTS)
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ctesta_DEPENDENCIES = \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ libbacktrace.la
+ctesta_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(ctesta_CFLAGS) $(CFLAGS) \
+ $(ctesta_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@am__objects_5 = ctesta_alloc-btest.$(OBJEXT) \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctesta_alloc-testlib.$(OBJEXT)
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@am_ctesta_alloc_OBJECTS = \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ $(am__objects_5)
+ctesta_alloc_OBJECTS = $(am_ctesta_alloc_OBJECTS)
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ctesta_alloc_DEPENDENCIES = libbacktrace_alloc.la
+ctesta_alloc_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(ctesta_alloc_CFLAGS) \
+ $(CFLAGS) $(ctesta_alloc_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@am_ctestg_OBJECTS = ctestg-btest.$(OBJEXT) \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctestg-testlib.$(OBJEXT)
+ctestg_OBJECTS = $(am_ctestg_OBJECTS)
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ctestg_DEPENDENCIES = \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ libbacktrace.la
+ctestg_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(ctestg_CFLAGS) $(CFLAGS) \
+ $(ctestg_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@am__objects_6 = ctestg_alloc-btest.$(OBJEXT) \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ ctestg_alloc-testlib.$(OBJEXT)
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@am_ctestg_alloc_OBJECTS = \
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ $(am__objects_6)
+ctestg_alloc_OBJECTS = $(am_ctestg_alloc_OBJECTS)
+@HAVE_COMPRESSED_DEBUG_TRUE@@NATIVE_TRUE@ctestg_alloc_DEPENDENCIES = libbacktrace_alloc.la
+ctestg_alloc_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(ctestg_alloc_CFLAGS) \
+ $(CFLAGS) $(ctestg_alloc_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@am_dwarf5_OBJECTS = \
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@ dwarf5-btest.$(OBJEXT) \
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@ dwarf5-testlib.$(OBJEXT)
+dwarf5_OBJECTS = $(am_dwarf5_OBJECTS)
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@dwarf5_DEPENDENCIES = libbacktrace.la
+dwarf5_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(dwarf5_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@am__objects_7 = \
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@ dwarf5_alloc-btest.$(OBJEXT) \
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@ dwarf5_alloc-testlib.$(OBJEXT)
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@am_dwarf5_alloc_OBJECTS = \
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@ $(am__objects_7)
+dwarf5_alloc_OBJECTS = $(am_dwarf5_alloc_OBJECTS)
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@dwarf5_alloc_DEPENDENCIES = \
+@HAVE_DWARF5_TRUE@@NATIVE_TRUE@ libbacktrace_alloc.la
+dwarf5_alloc_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(dwarf5_alloc_CFLAGS) \
+ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+@NATIVE_TRUE@am_edtest_OBJECTS = edtest-edtest.$(OBJEXT) \
+@NATIVE_TRUE@ edtest-edtest2_build.$(OBJEXT) \
+@NATIVE_TRUE@ edtest-testlib.$(OBJEXT)
+edtest_OBJECTS = $(am_edtest_OBJECTS)
+@NATIVE_TRUE@edtest_DEPENDENCIES = libbacktrace.la
+edtest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(edtest_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+@NATIVE_TRUE@am__objects_8 = edtest_alloc-edtest.$(OBJEXT) \
+@NATIVE_TRUE@ edtest_alloc-edtest2_build.$(OBJEXT) \
+@NATIVE_TRUE@ edtest_alloc-testlib.$(OBJEXT)
+@NATIVE_TRUE@am_edtest_alloc_OBJECTS = $(am__objects_8)
+edtest_alloc_OBJECTS = $(am_edtest_alloc_OBJECTS)
+@NATIVE_TRUE@edtest_alloc_DEPENDENCIES = libbacktrace_alloc.la
+edtest_alloc_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(edtest_alloc_CFLAGS) \
+ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+@NATIVE_TRUE@am_mtest_OBJECTS = mtest-mtest.$(OBJEXT) \
+@NATIVE_TRUE@ mtest-testlib.$(OBJEXT)
+mtest_OBJECTS = $(am_mtest_OBJECTS)
+@NATIVE_TRUE@mtest_DEPENDENCIES = libbacktrace.la
+mtest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(mtest_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+@NATIVE_TRUE@am_stest_OBJECTS = stest-stest.$(OBJEXT)
+stest_OBJECTS = $(am_stest_OBJECTS)
+@NATIVE_TRUE@stest_DEPENDENCIES = libbacktrace.la
+stest_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(stest_CFLAGS) $(CFLAGS) \
+ $(AM_LDFLAGS) $(LDFLAGS) -o $@
+@NATIVE_TRUE@am__objects_9 = stest_alloc-stest.$(OBJEXT)
+@NATIVE_TRUE@am_stest_alloc_OBJECTS = $(am__objects_9)
+stest_alloc_OBJECTS = $(am_stest_alloc_OBJECTS)
+@NATIVE_TRUE@stest_alloc_DEPENDENCIES = libbacktrace_alloc.la
+stest_alloc_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(stest_alloc_CFLAGS) \
+ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+@NATIVE_TRUE@am_test_elf_32_OBJECTS = \
+@NATIVE_TRUE@ test_elf_32-test_format.$(OBJEXT) \
+@NATIVE_TRUE@ test_elf_32-testlib.$(OBJEXT)
+test_elf_32_OBJECTS = $(am_test_elf_32_OBJECTS)
+@NATIVE_TRUE@test_elf_32_DEPENDENCIES = libbacktrace_noformat.la \
+@NATIVE_TRUE@ elf_32.lo
+test_elf_32_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
+ $(LIBTOOLFLAGS) --mode=link $(CCLD) $(test_elf_32_CFLAGS) \
+ $(CFLAGS) $(AM_LDFLAGS) $(LDFLAGS) -o $@
+@NATIVE_TRUE@am[...]
[diff truncated at 100000 bytes]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-09-28 11:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-28 11:27 [binutils-gdb] Copy in libbacktrace from gcc Andrew Burgess
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).