Commit b599e58c authored by Jordan Rupprecht's avatar Jordan Rupprecht Committed by Pirama Arumuga Nainar
Browse files

[UPSTREAM][llvm-objcopy] Strip debug sections when running with --strip-unneeded.

Summary:
GNU --strip-unneeded strips debugging sections as well. Do that for llvm-objcopy as well.

Additionally, add a test that verifies we keep the .gnu_debuglink section. This apparently was not always the case, and I'm not sure which commit fixed it, but there doesn't appear to be any test coverage to make sure we continue to do so.

This fixes PR41043.

Reviewers: jhenderson, jakehehrlich, espindola, alexshap

Subscribers: emaste, arichardson, MaskRay, abrachet, seiya, llvm-commits

Tags: #llvm

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

Change-Id: I2156eb32ddeac79361299ee2d485280a85c0513f
llvm-svn: 369761
(cherry picked from commit 0f323439)
Bug: https://github.com/android/ndk/issues/1083
parent 3f52017a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment