[llvm-objcopy] - Strip sections before symbols.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 26 Mar 2019 18:42:15 +0000 (18:42 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 26 Mar 2019 18:42:15 +0000 (18:42 +0000)
commit279898b3152556c223b7773f78063b52176b9edc
tree93674cb9f05976b3de3fed78f28e98ab7287b170
parentd7aba7678308848b640551ac083c8dfee01a7ba9
[llvm-objcopy] - Strip sections before symbols.

This is a fix for https://bugs.llvm.org/show_bug.cgi?id=40007.

Idea is to swap the order of stripping. So that we strip sections before
symbols what allows us to strip relocation sections without emitting
the error about relative symbols.

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

llvm-svn: 357017
llvm/test/tools/llvm-objcopy/ELF/strip-symbol-and-relocation.test [new file with mode: 0644]
llvm/tools/llvm-objcopy/ELF/ELFObjcopy.cpp