2016-09-10 07:59:09 -07:00
|
|
|
/* config.h.in. Generated from configure.ac by autoheader. */
|
|
|
|
|
|
|
|
|
|
/* ELF size: 32 or 64 */
|
|
|
|
|
#undef BACKTRACE_ELF_SIZE
|
|
|
|
|
|
2018-01-16 17:42:38 -08:00
|
|
|
/* XCOFF size: 32 or 64 */
|
|
|
|
|
#undef BACKTRACE_XCOFF_SIZE
|
|
|
|
|
|
2016-09-10 07:59:09 -07:00
|
|
|
/* Define to 1 if you have the __atomic functions */
|
|
|
|
|
#undef HAVE_ATOMIC_FUNCTIONS
|
|
|
|
|
|
2018-01-16 17:42:38 -08:00
|
|
|
/* Define to 1 if you have the `clock_gettime' function. */
|
|
|
|
|
#undef HAVE_CLOCK_GETTIME
|
|
|
|
|
|
2020-05-11 10:54:46 -07:00
|
|
|
/* Define to 1 if you have the declaration of `getpagesize', and to 0 if you
|
|
|
|
|
don't. */
|
|
|
|
|
#undef HAVE_DECL_GETPAGESIZE
|
|
|
|
|
|
2016-09-10 07:59:09 -07:00
|
|
|
/* Define to 1 if you have the declaration of `strnlen', and to 0 if you
|
|
|
|
|
don't. */
|
|
|
|
|
#undef HAVE_DECL_STRNLEN
|
|
|
|
|
|
2023-07-31 16:14:58 -07:00
|
|
|
/* Define to 1 if you have the declaration of `_pgmptr', and to 0 if you
|
|
|
|
|
don't. */
|
|
|
|
|
#undef HAVE_DECL__PGMPTR
|
|
|
|
|
|
2016-09-10 07:59:09 -07:00
|
|
|
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
|
|
|
#undef HAVE_DLFCN_H
|
|
|
|
|
|
|
|
|
|
/* Define if dl_iterate_phdr is available. */
|
|
|
|
|
#undef HAVE_DL_ITERATE_PHDR
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have the fcntl function */
|
|
|
|
|
#undef HAVE_FCNTL
|
|
|
|
|
|
|
|
|
|
/* Define if getexecname is available. */
|
|
|
|
|
#undef HAVE_GETEXECNAME
|
|
|
|
|
|
|
|
|
|
/* Define if _Unwind_GetIPInfo is available. */
|
|
|
|
|
#undef HAVE_GETIPINFO
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
|
|
|
#undef HAVE_INTTYPES_H
|
|
|
|
|
|
2020-02-15 15:33:11 -08:00
|
|
|
/* Define to 1 if you have KERN_PROC and KERN_PROC_PATHNAME in <sys/sysctl.h>.
|
|
|
|
|
*/
|
|
|
|
|
#undef HAVE_KERN_PROC
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have KERN_PROCARGS and KERN_PROC_PATHNAME in
|
|
|
|
|
<sys/sysctl.h>. */
|
|
|
|
|
#undef HAVE_KERN_PROC_ARGS
|
|
|
|
|
|
libbacktrace: support MiniDebugInfo
libbacktrace/ChangeLog:
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.
Close #38
2020-09-14 14:01:56 -07:00
|
|
|
/* Define if -llzma is available. */
|
|
|
|
|
#undef HAVE_LIBLZMA
|
|
|
|
|
|
2016-09-10 07:59:09 -07:00
|
|
|
/* Define to 1 if you have the <link.h> header file. */
|
|
|
|
|
#undef HAVE_LINK_H
|
|
|
|
|
|
2018-01-16 17:42:38 -08:00
|
|
|
/* Define if AIX loadquery is available. */
|
|
|
|
|
#undef HAVE_LOADQUERY
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have the `lstat' function. */
|
|
|
|
|
#undef HAVE_LSTAT
|
|
|
|
|
|
2020-02-18 18:57:14 -08:00
|
|
|
/* Define to 1 if you have the <mach-o/dyld.h> header file. */
|
|
|
|
|
#undef HAVE_MACH_O_DYLD_H
|
|
|
|
|
|
2016-09-10 07:59:09 -07:00
|
|
|
/* Define to 1 if you have the <memory.h> header file. */
|
|
|
|
|
#undef HAVE_MEMORY_H
|
|
|
|
|
|
2018-01-16 17:42:38 -08:00
|
|
|
/* Define to 1 if you have the `readlink' function. */
|
|
|
|
|
#undef HAVE_READLINK
|
|
|
|
|
|
2016-09-10 07:59:09 -07:00
|
|
|
/* Define to 1 if you have the <stdint.h> header file. */
|
|
|
|
|
#undef HAVE_STDINT_H
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
|
|
|
#undef HAVE_STDLIB_H
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <strings.h> header file. */
|
|
|
|
|
#undef HAVE_STRINGS_H
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <string.h> header file. */
|
|
|
|
|
#undef HAVE_STRING_H
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have the __sync functions */
|
|
|
|
|
#undef HAVE_SYNC_FUNCTIONS
|
|
|
|
|
|
2018-01-16 17:42:38 -08:00
|
|
|
/* Define to 1 if you have the <sys/ldr.h> header file. */
|
|
|
|
|
#undef HAVE_SYS_LDR_H
|
|
|
|
|
|
2022-07-08 10:28:24 -07:00
|
|
|
/* Define to 1 if you have the <sys/link.h> header file. */
|
|
|
|
|
#undef HAVE_SYS_LINK_H
|
|
|
|
|
|
2016-09-10 07:59:09 -07:00
|
|
|
/* Define to 1 if you have the <sys/mman.h> header file. */
|
|
|
|
|
#undef HAVE_SYS_MMAN_H
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
|
|
|
#undef HAVE_SYS_STAT_H
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
|
|
|
#undef HAVE_SYS_TYPES_H
|
|
|
|
|
|
2024-04-28 11:14:17 -07:00
|
|
|
/* Define to 1 if you have the <tlhelp32.h> header file. */
|
|
|
|
|
#undef HAVE_TLHELP32_H
|
|
|
|
|
|
2016-09-10 07:59:09 -07:00
|
|
|
/* Define to 1 if you have the <unistd.h> header file. */
|
|
|
|
|
#undef HAVE_UNISTD_H
|
|
|
|
|
|
2023-11-29 14:01:49 -08:00
|
|
|
/* Define to 1 if you have the <windows.h> header file. */
|
|
|
|
|
#undef HAVE_WINDOWS_H
|
|
|
|
|
|
2018-01-16 17:42:38 -08:00
|
|
|
/* Define if -lz is available. */
|
|
|
|
|
#undef HAVE_ZLIB
|
|
|
|
|
|
libbacktrace: support zstd decompression
Support decompressing --compress-debug-sections=zstd.
* configure.ac: Check for zstd library and
--compress-debug-sections=zstd linker option.
* Makefile.am (zstdtest_*): New targets.
(zstdtest_alloc_*, ctestzstd_*): New targets.
(BUILDTESTS): Add zstdtest, zstdtest_alloc, ctestzstd as
appropriate.
* elf.c (ELFCOMPRESS_ZSTD): Define.
(elf_fetch_bits): Rename from elf_zlib_fetch. Update uses.
(elf_fetch_bits_backward): New static function.
(ZLIB_HUFFMAN_*): Rename from HUFFMAN_*. Update uses.
(ZLIB_TABLE_*): Rename from ZDEBUG_TABLE_*. Update uses.
(ZSTD_TABLE_*): Define.
(struct elf_zstd_fse_entry): Define.
(elf_zstd_read_fse): New static function.
(elf_zstd_build_fse): Likewise.
(lit): Define if BACKTRACE_GENERATE_ZSTD_FSE_TABLES.
(match, offset, next, print_table, main): Likewise.
(elf_zstd_lit_table): New static const array.
(elf_zstd_match_table, elf_zstd_offset_table): Likewise.
(elf_zstd_read_huff): New static function.
(struct elf_zstd_seq_decode): Define.
(elf_zstd_unpack_seq_decode): New static function.
(ZSTD_LIT_*): Define.
(struct elf_zstd_literals): Define.
(elf_zstd_literal_output): New static function.
(ZSTD_LITERAL_LENGTH_BASELINE_OFFSET): Define.
(elf_zstd_literal_length_baseline): New static const array.
(elf_zstd_literal_length_bits): Likewise.
(ZSTD_MATCH_LENGTH_BASELINE_OFFSET): Define.
(elf_zstd_match_length_baseline): New static const array.
(elf_zstd_match_length_bits): Likewise.
(elf_zstd_decompress): New static function.
(ZDEBUG_TABLE_SIZE): New definition.
(elf_uncompress_chdr): Support ELF_COMPRESS_ZSTD.
(backtrace_uncompress_zstd): New function.
(elf_add): Use ZLIB_TABLE_SIZE for zlib-gnu sections.
* internal.h (backtrace_uncompress_zstd): Declare.
* zstdtest.c: New file.
* configure, config.h.in, Makefile.in: Regenerate.
2022-12-07 16:21:26 -08:00
|
|
|
/* Define if -lzstd is available. */
|
|
|
|
|
#undef HAVE_ZSTD
|
|
|
|
|
|
2016-09-10 07:59:09 -07:00
|
|
|
/* Define to the sub-directory in which libtool stores uninstalled libraries.
|
|
|
|
|
*/
|
|
|
|
|
#undef LT_OBJDIR
|
|
|
|
|
|
|
|
|
|
/* Define to the address where bug reports for this package should be sent. */
|
|
|
|
|
#undef PACKAGE_BUGREPORT
|
|
|
|
|
|
|
|
|
|
/* Define to the full name of this package. */
|
|
|
|
|
#undef PACKAGE_NAME
|
|
|
|
|
|
|
|
|
|
/* Define to the full name and version of this package. */
|
|
|
|
|
#undef PACKAGE_STRING
|
|
|
|
|
|
|
|
|
|
/* Define to the one symbol short name of this package. */
|
|
|
|
|
#undef PACKAGE_TARNAME
|
|
|
|
|
|
|
|
|
|
/* Define to the home page for this package. */
|
|
|
|
|
#undef PACKAGE_URL
|
|
|
|
|
|
|
|
|
|
/* Define to the version of this package. */
|
|
|
|
|
#undef PACKAGE_VERSION
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you have the ANSI C header files. */
|
|
|
|
|
#undef STDC_HEADERS
|
|
|
|
|
|
|
|
|
|
/* Enable extensions on AIX 3, Interix. */
|
|
|
|
|
#ifndef _ALL_SOURCE
|
|
|
|
|
# undef _ALL_SOURCE
|
|
|
|
|
#endif
|
|
|
|
|
/* Enable GNU extensions on systems that have them. */
|
|
|
|
|
#ifndef _GNU_SOURCE
|
|
|
|
|
# undef _GNU_SOURCE
|
|
|
|
|
#endif
|
|
|
|
|
/* Enable threading extensions on Solaris. */
|
|
|
|
|
#ifndef _POSIX_PTHREAD_SEMANTICS
|
|
|
|
|
# undef _POSIX_PTHREAD_SEMANTICS
|
|
|
|
|
#endif
|
|
|
|
|
/* Enable extensions on HP NonStop. */
|
|
|
|
|
#ifndef _TANDEM_SOURCE
|
|
|
|
|
# undef _TANDEM_SOURCE
|
|
|
|
|
#endif
|
|
|
|
|
/* Enable general extensions on Solaris. */
|
|
|
|
|
#ifndef __EXTENSIONS__
|
|
|
|
|
# undef __EXTENSIONS__
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
2019-12-23 18:55:51 -08:00
|
|
|
/* Enable large inode numbers on Mac OS X 10.5. */
|
|
|
|
|
#ifndef _DARWIN_USE_64_BIT_INODE
|
|
|
|
|
# define _DARWIN_USE_64_BIT_INODE 1
|
|
|
|
|
#endif
|
|
|
|
|
|
2018-01-16 17:42:38 -08:00
|
|
|
/* Number of bits in a file offset, on hosts where this is settable. */
|
|
|
|
|
#undef _FILE_OFFSET_BITS
|
|
|
|
|
|
|
|
|
|
/* Define for large files, on AIX-style hosts. */
|
|
|
|
|
#undef _LARGE_FILES
|
|
|
|
|
|
2016-09-10 07:59:09 -07:00
|
|
|
/* Define to 1 if on MINIX. */
|
|
|
|
|
#undef _MINIX
|
|
|
|
|
|
|
|
|
|
/* Define to 2 if the system does not provide POSIX.1 features except with
|
|
|
|
|
this defined. */
|
|
|
|
|
#undef _POSIX_1_SOURCE
|
|
|
|
|
|
|
|
|
|
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
|
|
|
|
#undef _POSIX_SOURCE
|