Reland "[llvm-objcopy] Add support for .dynamic, .dynsym, and .dynstr"
authorJake Ehrlich <jakehehrlich@google.com>
Wed, 20 Sep 2017 17:11:58 +0000 (17:11 +0000)
committerJake Ehrlich <jakehehrlich@google.com>
Wed, 20 Sep 2017 17:11:58 +0000 (17:11 +0000)
commite5d424b8dccf879a892e05e42e6e840607991b7b
tree61afbb7fe96a1f489524c22caf4c130ee268690b
parentf625118ec79e5c206e2a5ba9a2045b622937cee8
Reland "[llvm-objcopy] Add support for .dynamic, .dynsym, and .dynstr"

I overzealously landed this before I was sure that another change
wouldn't break the build that this change depends on.

This change adds support for sections involved in dynamic loading such
as SHT_DYNAMIC, SHT_DYNSYM, and allocated string tables.

The two added binaries used for tests can be downloaded here and here

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

llvm-svn: 313767
llvm/test/tools/llvm-objcopy/dynamic.test [new file with mode: 0644]
llvm/test/tools/llvm-objcopy/dynstr.test [new file with mode: 0644]
llvm/test/tools/llvm-objcopy/dynsym.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/Object.cpp
llvm/tools/llvm-objcopy/Object.h