[llvm] [objcopy] Implement --weaken, --weaken-symbol(s) flags for MachO Object Files (PR #70560)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 31 22:20:43 PDT 2023
================
@@ -94,6 +94,14 @@ static void updateAndRemoveSymbols(const CommonConfig &Config,
const MachOConfig &MachOConfig,
Object &Obj) {
for (SymbolEntry &Sym : Obj.SymTable) {
+ // Weaken first to match ELFObjcopy behavior
----------------
MaskRay wrote:
`Weaken symbols first to match ELFObjcopy behavior.`
https://github.com/llvm/llvm-project/pull/70560
More information about the llvm-commits
mailing list