Implements --update-section which is currently supported for ELF for Mach-O as well
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
From what I can gather about Mach-O, it seems like maybe updateSection could just be removeSection + addSection, but I wasn't sure. Maybe someone with more Mach-O experience could say for sure.
Yeah, I'm not really qualified to do this review, as it's fairly format-specific heavy, so I'll defer to others to do it.
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp | ||
---|---|---|
343 | we probably don't need 2 cases here (specified / unspecified segment name), | |
424 | nit: std::tie(SectionName, FileName) = Flag.split('='); |
small nit, otherwise LGTM
llvm/tools/llvm-objcopy/MachO/MachOObjcopy.cpp | ||
---|---|---|
320 | nit: const Object &O |
nit: const Object &O