OSDN Git Service

[llvm-objcopy] - Check for invalidated relocations when removing a section.
authorGeorge Rimar <grimar@accesssoftek.com>
Wed, 27 Feb 2019 11:18:27 +0000 (11:18 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Wed, 27 Feb 2019 11:18:27 +0000 (11:18 +0000)
commitea5f709d7379b631f20b673870a5ddcc408220da
treef4112909775f9a8124faf0eba6102bbdf8fa65aa
parent03864785358f74a80924d360e24a9f22478e4577
[llvm-objcopy] - Check for invalidated relocations when removing a section.

This is https://bugs.llvm.org/show_bug.cgi?id=40818

Removing a section that is used by relocation is an error
we did not report. The patch fixes that.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@354962 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objcopy/ELF/strip-section-err.test [new file with mode: 0644]
tools/llvm-objcopy/ELF/Object.cpp
tools/llvm-objcopy/ELF/Object.h