[PATCH] D75104: [tools][llvm-objcopy] Enable --discard-all for MachO
Alexander Shaposhnikov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 25 10:47:54 PST 2020
alexshap marked an inline comment as done.
alexshap added inline comments.
================
Comment at: llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp:72
+ if (Config.DiscardMode == DiscardType::All)
+ return !static_cast<bool>(N->n_type & MachO::N_EXT);
+ return false;
----------------
MaskRay wrote:
> Is this binutils's behavior? I cannot find a reference to `N_EXT`.
I was looking at how other tools in LLVM check if a macho symbol is global
https://llvm.org/doxygen/MachOObjectFile_8cpp_source.html#l01854
+ checked that on a simple examples cctools's strip -x does the same as llvm-strip.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D75104/new/
https://reviews.llvm.org/D75104
More information about the llvm-commits
mailing list