OSDN Git Service

[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)
commitdca7346ad9a92ca8ef1947e1bb00b9f2c2cd0835
treea3cc596293f22a4c4ab3d419e5d50f8748fb1219
parent0d02e66ea8ce85300e686ccba5ae4e0806a875e2
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357017 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/llvm-objcopy/ELF/strip-symbol-and-relocation.test [new file with mode: 0644]
tools/llvm-objcopy/ELF/ELFObjcopy.cpp