[llvm] r355783 - [runtime] Use --strip-all rather than --strip-sections

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 9 20:26:54 PST 2019


Author: phosek
Date: Sat Mar  9 20:26:54 2019
New Revision: 355783

URL: http://llvm.org/viewvc/llvm-project?rev=355783&view=rev
Log:
[runtime] Use --strip-all rather than --strip-sections

We need to preserve section headers for shared libraries.

Differential Revision: https://reviews.llvm.org/D59184

Modified:
    llvm/trunk/runtimes/llvm-strip-link.in

Modified: llvm/trunk/runtimes/llvm-strip-link.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtimes/llvm-strip-link.in?rev=355783&r1=355782&r2=355783&view=diff
==============================================================================
--- llvm/trunk/runtimes/llvm-strip-link.in (original)
+++ llvm/trunk/runtimes/llvm-strip-link.in Sat Mar  9 20:26:54 2019
@@ -19,7 +19,7 @@ link_dir = os.path.join(install_dir, 'li
 
 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=',




More information about the llvm-commits mailing list