[llvm-objcopy] - Implement replaceSectionReferences for GroupSection class.
authorGeorge Rimar <grimar@accesssoftek.com>
Fri, 22 Mar 2019 10:24:37 +0000 (10:24 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Fri, 22 Mar 2019 10:24:37 +0000 (10:24 +0000)
commit73e1c4a0309d3c81ad21f2c769d33222f6615abb
tree66ca70e86fda2ffc0f78950da1f6209f1312731b
parentc040d5de25f50887170e056dc854fe0a82e04640
[llvm-objcopy] - Implement replaceSectionReferences for GroupSection class.

Currently, llvm-objcopy incorrectly handles compression and decompression of the
sections from COMDAT groups, because we do not implement the
replaceSectionReferences for this type of the sections.

The patch does that.

Differential revision: https://reviews.llvm.org/D59638

llvm-svn: 356738
llvm/test/tools/llvm-objcopy/ELF/Inputs/compress-debug-sections.yaml
llvm/test/tools/llvm-objcopy/ELF/compress-debug-sections-groups.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/ELF/Object.cpp
llvm/tools/llvm-objcopy/ELF/Object.h