]> git.ipfire.org Git - thirdparty/gcc.git/commit
[libbacktrace] Fix .gnu_debugaltlink build-id check
authorvries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jan 2019 12:17:32 +0000 (12:17 +0000)
committervries <vries@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 31 Jan 2019 12:17:32 +0000 (12:17 +0000)
commit841c4887bbb5c89a7c2c893e84b9fd2087093126
tree72ab8bb06bbd1ae1adfdc3836a6202c664a36d11
parent45ccb5c437a5185129c373e350e112b690f4a4ce
[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'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@268419 138bc75d-0d04-0410-961f-82ee72b054a4
libbacktrace/ChangeLog
libbacktrace/elf.c