diff options
author | Mark Wielaard <[email protected]> | 2015-10-02 16:31:36 +0200 |
---|---|---|
committer | Mark Wielaard <[email protected]> | 2015-10-02 16:31:44 +0200 |
commit | 9a4500f0ccf0815c71d6fd6fa301260f96675398 (patch) | |
tree | 11251223859aa86f804a6698ee31873e80520b37 /libelf/elf32_updatefile.c | |
parent | 7875bf53bf9846ff66a8e58d9c166d83b9596fa0 (diff) |
unstrip: Update sh_info when SH_INFO_LINK_P, not just when SHF_INFO_LINK set.upstream/mjw/elfstrmerge
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 to as section index.
Found by run-strip-strmerge.sh test with older binutils.
Signed-off-by: Mark Wielaard <[email protected]>
Diffstat (limited to 'libelf/elf32_updatefile.c')
0 files changed, 0 insertions, 0 deletions