From 7af6025bd12eb086341c3076b760b053a9c2625f Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Fri, 8 Nov 2019 16:19:33 -0800 Subject: [llvm-objcopy][COFF] Implement --redefine-sym and --redefine-syms The parsing error tests in ELF/redefine-symbols.test are not specific to ELF. Move them to redefine-symbols.test. Add COFF/redefine-symbols.test for COFF specific tests. Also fix the documentation regarding --redefine-syms: the old and new names are separated by whitespace, not an equals sign. Reviewed By: mstorsjo Differential Revision: https://reviews.llvm.org/D70036 --- llvm/docs/CommandGuide/llvm-objcopy.rst | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) (limited to 'llvm/docs/CommandGuide/llvm-objcopy.rst') diff --git a/llvm/docs/CommandGuide/llvm-objcopy.rst b/llvm/docs/CommandGuide/llvm-objcopy.rst index e9b58d245e7..9d7cab99e75 100644 --- a/llvm/docs/CommandGuide/llvm-objcopy.rst +++ b/llvm/docs/CommandGuide/llvm-objcopy.rst @@ -84,6 +84,19 @@ multiple file formats. For MachO objects, ``
`` must be formatted as ``,
``. +.. option:: --redefine-sym = + + Rename symbols called ```` to ```` in the output. Can be specified + multiple times to rename multiple symbols. + +.. option:: --redefine-syms + + Rename symbols in the output as described in the file ````. In the + file, each line represents a single symbol to rename, with the old name and new + name separated by whitespace. Leading and trailing whitespace is ignored, as is + anything following a '#'. Can be specified multiple times to read names from + multiple files. + .. option:: --regex If specified, symbol and section names specified by other switches are treated @@ -378,19 +391,6 @@ them. Preserve access and modification timestamps in the output. -.. option:: --redefine-sym = - - Rename symbols called ```` to ```` in the output. Can be specified - multiple times to rename multiple symbols. - -.. option:: --redefine-syms - - Rename symbols in the output as described in the file ````. In the - file, each line represents a single symbol to rename, with the old name and new - name separated by an equals sign. Leading and trailing whitespace is ignored, - as is anything following a '#'. Can be specified multiple times to read names - from multiple files. - .. option:: --rename-section =[,,...] Rename sections called ```` to ```` in the output, and apply any -- cgit v1.2.3