diff options
author | Chih-Hung Hsieh <chh@google.com> | 2018-05-30 09:47:40 -0700 |
---|---|---|
committer | Chih-hung Hsieh <chh@google.com> | 2018-05-31 21:46:23 +0000 |
commit | dc768155a609c4ceb31aec03cfbefc60ae679e85 (patch) | |
tree | 1f6661c78abd7af2aea8ecabbf7de4ae544200e7 | |
parent | 1d739ffb0366421d383e04ff80ec2ee591315116 (diff) | |
download | llvm-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.txt | 3 |
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() |