-S means something different in GNU strip and GNU objcopy. We'd like to have the respective llvm versions maintain command line compatibility. In strip it means --strip-debug and in objcopy it means --strip-all. This change adds support for -S to both.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Why is -S a hidden option?
tools/llvm-objcopy/llvm-objcopy.cpp | ||
---|---|---|
354 | This line hasn't been clang-formatted. |
Comment Actions
It can't be given a consistent description across llvm-objcopy and llvm-strip (it's also the only option that has that property). It's also consistent with aliases for the long name options being hidden. In my mind it's really there for command line compatibility and nothing else.
This line hasn't been clang-formatted.