]> git.ipfire.org Git - thirdparty/elfutils.git/commit
elflint: Don't check shdr or TLS symbol offsets against debuginfo phdrs.
authorMark Wielaard <mjw@redhat.com>
Fri, 16 Oct 2015 19:19:05 +0000 (21:19 +0200)
committerMark Wielaard <mjw@redhat.com>
Fri, 16 Oct 2015 19:19:05 +0000 (21:19 +0200)
commita1e17a2551ddd1b2c4853e053dc1b254440211bd
treeb675cdd05cd9a408b0b1d8fc3d4c27bca33318d0
parent0479e127b146b585b023380579e11e7015de9c6c
elflint: Don't check shdr or TLS symbol offsets against debuginfo phdrs.

In debuginfo files the phdrs file offsets match those of the original ELF
file. So the section header file offsets and the TLS symbol value offset
in debuginfo files cannot be sanity checked against the phdrs file offset.

The issue can be triggered with run-strip-strmerge.sh test when configured
with --enable-gcov. Which will insert a .tbss section and TLS symbols that
trigger the above checks.

Signed-off-by: Mark Wielaard <mjw@redhat.com>
src/ChangeLog
src/elflint.c