[libbacktrace] Fix .gnu_debugaltlink build-id check
authorTom de Vries <tdevries@suse.de>
Thu, 31 Jan 2019 12:17:32 +0000 (12:17 +0000)
committerTom de Vries <vries@gcc.gnu.org>
Thu, 31 Jan 2019 12:17:32 +0000 (12:17 +0000)
commit3a3f5dd1af1d3007c60ccbabf068a18039c6522c
tree72ab8bb06bbd1ae1adfdc3836a6202c664a36d11
parent7ad97d17775832ca57166a8bf302f48ea07a785e
[libbacktrace] Fix .gnu_debugaltlink build-id check

The 'debugaltlink_name_len =+ 1' bug reported in PR89136 exposes the fact that
the build-id is not verified for the .gnu_debugaltlink.

Fix both problems.

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'.

From-SVN: r268419
libbacktrace/ChangeLog
libbacktrace/elf.c