OSDN Git Service

[llvm-objcopy] Add support for relocations
authorPetr Hosek <phosek@chromium.org>
Wed, 6 Sep 2017 16:19:48 +0000 (16:19 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 6 Sep 2017 16:19:48 +0000 (16:19 +0000)
commit5ab1ebb761358d17fb3ef8aa89bdc64244236887
treeb75eb01383815682139809b66ce11370e1cb9908
parent78696b31cd5f23c5a1aea1f85af7678505d1b259
[llvm-objcopy] Add support for relocations

This change adds support for SHT_REL and SHT_RELA sections in
llvm-objcopy.

Patch by Jake Ehrlich

Differential Revision: https://reviews.llvm.org/D36554

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@312643 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objcopy/basic-relocations.test [new file with mode: 0644]
test/tools/llvm-objcopy/no-symbol-relocation.test [new file with mode: 0644]
tools/llvm-objcopy/Object.cpp
tools/llvm-objcopy/Object.h