HomePhabricator

[llvm-objcopy][MachO] Make --remove-section clean up dead symbols

Authored by alexander-shaposhnikov on Apr 22 2020, 2:26 PM.

Description

[llvm-objcopy][MachO] Make --remove-section clean up dead symbols

Make --remove-section clean up dead symbols, return an Error if it can't be safely done.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D78474