]> git.ipfire.org Git - thirdparty/elfutils.git/commit
unstrip: Update sh_info when SH_INFO_LINK_P not just when SHF_INFO_LINK set
authorMark Wielaard <mjw@redhat.com>
Fri, 2 Oct 2015 14:31:36 +0000 (16:31 +0200)
committerMark Wielaard <mjw@redhat.com>
Mon, 5 Oct 2015 19:58:59 +0000 (21:58 +0200)
commit2e084502768cc845bacc2457c22d097f49808751
treeeb2753f7d3ba09b7a8cadd42b4f61b77de24089b
parentdf7dfab451246e8b088040e052ca01f9d6aba774
unstrip: Update sh_info when SH_INFO_LINK_P not just when SHF_INFO_LINK set

SHF_INFO_LINK is not consistently set when sh_info is actually a section
index reference. Use SH_INFO_LINK_P to check whether to update the sh_info
value. SH_INFO_LINK_P also checks the section type to know whether or not
sh_info is meant as section index.

Found by run-strip-strmerge.sh test with older binutils.

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