OSDN Git Service

[llvm-objcopy] - Use replaceSectionReferences to update the sections for symbols...
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 20 Mar 2019 13:57:47 +0000 (13:57 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 20 Mar 2019 13:57:47 +0000 (13:57 +0000)
commite9fd37a7493e89cbe9fba8d2c31ad915bafe816e
treee675cff46ceab1a8478e43b47631a9310f679d4a
parentb2508feccefdaf11dfb1ed3efaa1e4b1d8ce977b
[llvm-objcopy] - Use replaceSectionReferences to update the sections for symbols in symbol table.

If the compression was used and we had a symbol not involved in relocation,
we never updated its section and it was silently removed from the output.

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

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