If certain switches are not specified, llvm-strip behaves as if --strip-all were specified. This means that for testing, when we don't want the stripping behaviour, we have to specify one of these switches, which can be confusing. This change adds --no-strip-all to allow an alternative way of suppressing the default stripping, in a less confusing manner.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/tools/llvm-objcopy/ELF/no-strip-all.test | ||
---|---|---|
7 | Replace cp %t.o %t1.o with -o %t1.o? |
test/tools/llvm-objcopy/ELF/no-strip-all.test | ||
---|---|---|
7 | No, because each of the test cases makes a copy from the pristine version before llvm-strip modifies it. |
test/tools/llvm-objcopy/ELF/no-strip-all.test | ||
---|---|---|
7 | llvm-strip %t.o -o %t1.o |
test/tools/llvm-objcopy/ELF/no-strip-all.test | ||
---|---|---|
7 | Oh, I see what you mean. Yes, that should work. For some reason, I'd forgotten about -o! |
tools/llvm-objcopy/CopyConfig.cpp | ||
---|---|---|
722–723 | Nit. auto * is more common, but I see the auto Arg below doesn't have the *... so you can ignore me. |
Replace cp %t.o %t1.o with -o %t1.o?