From b68566aec32d7bf361a51183b4f161d14e50f0c6 Mon Sep 17 00:00:00 2001 From: Petr Hosek Date: Sun, 10 Mar 2019 04:26:54 +0000 Subject: [PATCH] [runtime] Use --strip-all rather than --strip-sections We need to preserve section headers for shared libraries. Differential Revision: https://reviews.llvm.org/D59184 llvm-svn: 355783 --- llvm/runtimes/llvm-strip-link.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/runtimes/llvm-strip-link.in b/llvm/runtimes/llvm-strip-link.in index f9f6a98..a7b8c56 100755 --- a/llvm/runtimes/llvm-strip-link.in +++ b/llvm/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=', -- 2.7.4