Recommit r356738 "[llvm-objcopy] - Implement replaceSectionReferences for GroupSectio...
authorGeorge Rimar <grimar@accesssoftek.com>
Sun, 24 Mar 2019 14:41:45 +0000 (14:41 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Sun, 24 Mar 2019 14:41:45 +0000 (14:41 +0000)
commit272571718c07625206c4d57138c1cd1c1467f203
tree6ef9e54b778ed0b7bb23649774d8c4ae9bd21a2e
parent7d676dfd86fa9192a34983de14978d453d6e4638
Recommit r356738 "[llvm-objcopy] - Implement replaceSectionReferences for GroupSection class."

Fix: r356853 + set AddressAlign to 4 in
Inputs/compress-debug-sections.yaml for the new group section introduced.

Original commit message:

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: 356856
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