The bad usage tests in ELF/redefine-symbols.test are not specific to ELF.
Move them to redefine-symbols.test .
Also fix the documentation regarding --redefine-syms: the old and new
names are separated by whitespace, not an equals sign.
Paths
| Differential D70036
[llvm-objcopy][COFF] Implement --redefine-sym and --redefine-syms ClosedPublic Authored by MaskRay on Nov 8 2019, 5:21 PM.
Details Summary The bad usage tests in ELF/redefine-symbols.test are not specific to ELF. Also fix the documentation regarding --redefine-syms: the old and new
Diff Detail
Event TimelineComment Actions Looks okay to me, but I don't know enough about COFF to know whether there are any hidden gotchas with renaming symbols that might need accounting for.
Comment Actions Looks good in general, with two minor comments
MaskRay marked 4 inline comments as done. Comment ActionsAddress review comments
Comment Actions LGTM, but please mention the documentation fix in the commit message, as it's not immediately obvious that the paragraph is edited while it's moved, and the edit is kind of unrelated to this change (other than the lines are moved). This revision is now accepted and ready to land.Nov 12 2019, 11:15 AM Closed by commit rG7af6025bd12e: [llvm-objcopy][COFF] Implement --redefine-sym and --redefine-syms (authored by MaskRay). · Explain WhyNov 12 2019, 11:33 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 228739 llvm/docs/CommandGuide/llvm-objcopy.rst
llvm/test/tools/llvm-objcopy/COFF/redefine-symbol.test
llvm/test/tools/llvm-objcopy/ELF/redefine-symbol.test
llvm/test/tools/llvm-objcopy/redefine-symbols.test
llvm/tools/llvm-objcopy/COFF/COFFObjcopy.cpp
|
While this just moves the documentation, it seems to me that this documentation is wrong; in the text file, there's no equals sign between old and new names, they're just separated by whitespace.