[libbacktrace] Read .gnu_debugaltlink
authorTom de Vries <tdevries@suse.de>
Thu, 17 Jan 2019 00:07:21 +0000 (00:07 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 17 Jan 2019 00:07:21 +0000 (00:07 +0000)
commita34c2a3d19b096a97184253d1e1f225f13bd3a0f
tree717358f170c54317322fee7b35ad81b85f3ef752
parentedfe833a31a4e34875f30ec5eb8c56da556384d8
[libbacktrace] Read .gnu_debugaltlink

Read the elf file pointed at by the .gnu_debugaltlink section, and verify that
the build id matches.

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.

From-SVN: r267992
libbacktrace/ChangeLog
libbacktrace/Makefile.in
libbacktrace/elf.c