Skip to content

Commit

Permalink
[runtime] Use --strip-all rather than --strip-sections
Browse files Browse the repository at this point in the history
We need to preserve section headers for shared libraries.

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

llvm-svn: 355783
  • Loading branch information
petrhosek committed Mar 10, 2019
1 parent e723819 commit b68566a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/runtimes/llvm-strip-link.in
Original file line number Diff line number Diff line change
Expand Up @@ -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=',
Expand Down

0 comments on commit b68566a

Please sign in to comment.