aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2018-05-30 09:47:40 -0700
committerChih-hung Hsieh <chh@google.com>2018-05-31 21:46:23 +0000
commitdc768155a609c4ceb31aec03cfbefc60ae679e85 (patch)
tree1f6661c78abd7af2aea8ecabbf7de4ae544200e7
parent1d739ffb0366421d383e04ff80ec2ee591315116 (diff)
downloadllvm-dc768155a609c4ceb31aec03cfbefc60ae679e85.tar.gz
Add llvm-strip link to llvm-objcopy.
* llvm-strip will be used with lld to workaround GNU strip bug that removes GNU_RELRO segment from lld generated files. Bug: 80093681 Change-Id: I16f343569a82dc3fe5aabf067b4ba2462f1ac842
-rw-r--r--tools/llvm-objcopy/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/llvm-objcopy/CMakeLists.txt b/tools/llvm-objcopy/CMakeLists.txt
index 05aa727ab9d..c8d3f22e294 100644
--- a/tools/llvm-objcopy/CMakeLists.txt
+++ b/tools/llvm-objcopy/CMakeLists.txt
@@ -8,6 +8,9 @@ add_llvm_tool(llvm-objcopy
Object.cpp
)
+add_llvm_tool_symlink(llvm-strip llvm-objcopy)
+
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
add_llvm_tool_symlink(objcopy llvm-objcopy)
+ add_llvm_tool_symlink(strip llvm-objcopy)
endif()