binutils-gdb/config
Aaron Merey 301a9420d9 Add support for debuginfod to the binutils (disable by default, enabled via a configure time option).
debuginfod is a lightweight web service that indexes ELF/DWARF
debugging resources by build-id and serves them over HTTP. This patch
enables objdump and readelf to query debuginfod servers when they are
otherwise not able to find separate debug files. Binutils can be built
with debuginfod using the --with-debuginfod configure option. This
requires that libdebuginfod be installed and found at configure time.
debuginfod is packaged with elfutils, starting with version 0.178. For
more information see https://sourceware.org/elfutils/.

toplevel* config/debuginfod.m4: New file. Add macro AC_DEBUGINFOD. Adds
        new configure option --with-debuginfod.
        * configure: Regenerate.
        * configure.ac: Call AC_DEBUGINFOD.

binutils* Makefile.am (readelf_LDADD, objdump_LDADD): Add libdebuginfod.
        * Makefile.in: Regenerate.
        * NEWS: Update.
        * config.in: Regenerate.
        * configure: Regenerate.
        * configure.ac: Call AC_DEBUGINFOD.
        * doc/Makefile.in: Regenerate.
        * doc/binutils.texi: Add section on using binutils
        with debuginfod.
        * dwarf.c (debuginfod_fetch_separate_debug_info): New function.
        Query debuginfod servers for the target debug file.
        (load_separate_debug_info): Call
        debuginfod_fetch_separate_debug_info if configured with
        debuginfod.
        (load_separate_debug_files): Add file argument to
        load_separate_debug_info calls.
        * dwarf.h (get_build_id): Add declaration.
        * objdump.c (get_build_id): New function. Get build-id of file.
        * readelf.c (get_build_id): Likewise.
        * testsuite/binutils-all/debuginfod.exp: New tests.
        * testsuite/binutils-all/linkdebug.s: Add .note.gnu.build-id
        section.
2020-01-09 13:19:20 +00:00
..
acinclude.m4 strip off +x bits on non-executable/script files 2013-12-07 02:03:03 -05:00
acx.m4 config: Sync with GCC 2018-06-18 09:33:48 -04:00
asmcfi.m4
ax_check_define.m4 Update top level configure files by synchronizing them with gcc. 2018-01-10 15:29:21 +00:00
ax_pthread.m4 config: Sync with GCC 2018-06-18 09:33:48 -04:00
bitfields.m4 Sync config files with GCC 2015-07-14 09:18:16 -07:00
bootstrap-asan.mk sync binutils config/ with gcc 2016-12-08 21:35:11 +10:30
bootstrap-cet.mk config: Sync with GCC 2018-06-18 09:33:48 -04:00
bootstrap-debug-big.mk
bootstrap-debug-ckovw.mk
bootstrap-debug-lean.mk Update top level configure files by synchronizing them with gcc. 2018-01-10 15:29:21 +00:00
bootstrap-debug-lib.mk
bootstrap-debug.mk
bootstrap-lto-noplugin.mk config: Sync with GCC 2018-06-18 09:33:48 -04:00
bootstrap-lto.mk config: Sync with GCC 2018-06-18 09:33:48 -04:00
bootstrap-O1.mk
bootstrap-O3.mk
bootstrap-time.mk
bootstrap-ubsan.mk config: Sync with GCC 2018-06-18 09:33:48 -04:00
cet.m4 config: Sync with GCC 2018-06-18 09:33:48 -04:00
ChangeLog Add markers for 2.33 branch to NEWS and ChangeLog files. 2019-09-09 10:27:40 +01:00
codeset.m4
debuginfod.m4 Add support for debuginfod to the binutils (disable by default, enabled via a configure time option). 2020-01-09 13:19:20 +00:00
depstand.m4
dfp.m4 Merge config/ changes from GCC. 2018-10-31 17:16:41 +00:00
elf.m4 Sync elf.m4 with GCC tree 2015-03-16 08:49:06 -07:00
enable.m4
extensions.m4
futex.m4
gc++filt.m4
gcc-plugin.m4 Fix PR ld/22263 on SPARC. 2018-02-06 18:17:39 +01:00
gettext-sister.m4
gettext.m4 Sync config with GCC 2015-07-27 07:43:26 -07:00
glibc21.m4
gthr.m4 Add gthr.m4 2012-11-03 23:53:02 +00:00
gxx-include-dir.m4
hwcaps.m4 Update top level configure files by synchronizing them with gcc. 2018-01-10 15:29:21 +00:00
iconv.m4 Fix a typo in iconv.m4. 2018-11-09 16:08:10 +00:00
intdiv0.m4
inttypes_h.m4
inttypes-pri.m4
inttypes.m4
isl.m4 Update top level configure files by synchronizing them with gcc. 2018-01-10 15:29:21 +00:00
largefile.m4
lcmessage.m4
ld-symbolic.m4
lead-dot.m4
lib-ld.m4
lib-link.m4
lib-prefix.m4
libstdc++-raw-cxx.m4 Remove "-I" from LIBSTDCXX_RAW_CXX_LDFLAGS 2013-01-07 18:25:13 +00:00
lthostflags.m4
math.m4 Merge autoconf / automake update changes from GCC. 2018-10-31 17:10:56 +00:00
mh-alpha-linux Sync toplevel configure.ac with GCC 2015-07-14 07:49:50 -07:00
mh-cygwin
mh-darwin Sync libiberty from GCC, replaying updates to configure scripts 2015-06-24 21:43:02 +02:00
mh-djgpp
mh-mingw
mh-pa
mh-pa-hpux10
mh-ppc-aix
mmap.m4
mt-alphaieee
mt-android Update top level configure files by synchronizing them with gcc. 2018-01-10 15:29:21 +00:00
mt-d30v
mt-gnu Don't reset CXXFLAGS_FOR_TARGET 2015-03-16 08:41:42 -07:00
mt-mips16-compat
mt-mips-elfoabi
mt-mips-gnu
mt-nios2-elf Sync nios2 configure changes from GCC mainline. 2014-05-14 16:27:14 -07:00
mt-ospace Append -g -Os rather than overwriting 2015-03-16 08:44:41 -07:00
mt-sde
mt-spu
multi.m4 Merge config/ changes from GCC. 2018-10-31 17:16:41 +00:00
nls.m4
no-executables.m4
override.m4 Bump to autoconf 2.69 and automake 1.15.1 2018-06-19 16:55:06 -04:00
picflag.m4 picflag.m4 high bit set in comment 2017-01-05 00:02:57 +10:30
plugins.m4 config: Sync with GCC 2018-04-05 15:22:13 -07:00
po.m4 Sync config with GCC 2015-07-27 07:43:26 -07:00
proginstall.m4
progtest.m4
sjlj.m4 Sync config files with GCC 2015-07-14 09:18:16 -07:00
stdint_h.m4
stdint.m4 Sync config with GCC 2015-07-27 07:43:26 -07:00
target-posix Sync config files with GCC 2015-07-14 09:18:16 -07:00
tcl.m4 Sync config with GCC 2015-07-27 07:43:26 -07:00
tls.m4 Merge autoconf / automake update changes from GCC. 2018-10-31 17:10:56 +00:00
uintmax_t.m4
ulonglong.m4
unwind_ipinfo.m4
warnings.m4 Sync config/warnings.m4 with GCC 2015-07-14 08:39:12 -07:00
weakref.m4
zlib.m4 Set zlibdir/zlibinc with top_builddir/top_srcdir 2015-04-02 05:43:07 -07:00