From: Petr Hosek Date: Sun, 10 Mar 2019 04:26:54 +0000 (+0000) Subject: [runtime] Use --strip-all rather than --strip-sections X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4daee4c2afed10b62063b8b5551798a0452b4aaf;p=llvm [runtime] Use --strip-all rather than --strip-sections We need to preserve section headers for shared libraries. Differential Revision: https://reviews.llvm.org/D59184 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355783 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/runtimes/llvm-strip-link.in b/runtimes/llvm-strip-link.in index f9f6a9883df..a7b8c567faf 100755 --- a/runtimes/llvm-strip-link.in +++ b/runtimes/llvm-strip-link.in @@ -19,7 +19,7 @@ link_dir = os.path.join(install_dir, 'lib', 'debug', '.build-id') sys.exit(subprocess.call([ llvm_objcopy, - '--strip-sections', + '--strip-all', '--build-id-link-dir=' + link_dir, '--build-id-link-input=.debug', '--build-id-link-output=',