Make --remove-section clean up dead symbols, return an Error if it can't be safely done.
Test plan: make check-all
Paths
| Differential D78474
[llvm-objcopy][MachO] Make --remove-section clean up dead symbols ClosedPublic Authored by alexander-shaposhnikov on Apr 19 2020, 10:59 PM.
Details Summary Make --remove-section clean up dead symbols, return an Error if it can't be safely done. Test plan: make check-all
Diff Detail
Unit TestsFailed Event Timeline
alexander-shaposhnikov added inline comments.
alexander-shaposhnikov added inline comments.
alexander-shaposhnikov added inline comments.
alexander-shaposhnikov added inline comments.
alexander-shaposhnikov added inline comments.
Comment Actions The Mach-O bits look good to me.
Comment Actions LGTM, with one outstanding comment/question.
This revision is now accepted and ready to land.Apr 21 2020, 12:32 AM alexander-shaposhnikov added inline comments.
alexander-shaposhnikov marked an inline comment as done. alexander-shaposhnikov added inline comments.
Closed by commit rGf34fdbcf996a: [llvm-objcopy][MachO] Make --remove-section clean up dead symbols (authored by alexander-shaposhnikov). · Explain WhyApr 22 2020, 2:42 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 258928 llvm/test/tools/llvm-objcopy/MachO/remove-section-dead-symbols.test
llvm/test/tools/llvm-objcopy/MachO/remove-section-error.test
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp
llvm/tools/llvm-objcopy/MachO/MachOReader.cpp
llvm/tools/llvm-objcopy/MachO/Object.h
llvm/tools/llvm-objcopy/MachO/Object.cpp
|
What's the reason for dumping the sections here?