[llvm] [ELFObject] Added dbgs() statement in removeSections() (PR #124692)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 21 00:00:57 PST 2025
MaskRay wrote:
Frankly I'm not sure how useful this option would be. GNU objcopy --verbose doesn't print the information.
llvm-strip's default behavior with `--strip-all` removes all symbols and sections, which can result in a very large output file for anything beyond the simplest object.
There might be some value when using --strip-* with a pattern (either --regex or --wildcard) but this is likely not useful when stripping exact pattern sections/symbols.
We also do not mention update modifications llvm-objcopy might perform, which could lead to potential confusion.
As a user, I am used to performing a binary diff (readelf) after a strip/objcopy operation.
https://github.com/llvm/llvm-project/pull/124692
More information about the llvm-commits
mailing list