]> granicus.if.org Git - llvm/commit
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)
commitd33d5ac7aaba9618f06a1887081b2f9ded0466e4
tree2bd276fc3a31984d0c61a79b0df34f20ee886380
parentd6a187abe9ebb3eb185e64815fa3b44c56e5702f
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356856 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objcopy/ELF/Inputs/compress-debug-sections.yaml
test/tools/llvm-objcopy/ELF/compress-debug-sections-groups.test [new file with mode: 0644]
tools/llvm-objcopy/ELF/Object.cpp
tools/llvm-objcopy/ELF/Object.h