diff options
author | Fangrui Song <maskray@google.com> | 2019-11-08 16:19:33 -0800 |
---|---|---|
committer | Fangrui Song <maskray@google.com> | 2019-11-12 11:28:00 -0800 |
commit | 7af6025bd12eb086341c3076b760b053a9c2625f (patch) | |
tree | ae822719e8f4a796a30f97c54d10a580c6b09bc5 /llvm/docs/CommandGuide | |
parent | 96915495f9fcbd47bf3f893200e3f5a8e30d0d9e (diff) | |
download | bcm5719-llvm-7af6025bd12eb086341c3076b760b053a9c2625f.tar.gz bcm5719-llvm-7af6025bd12eb086341c3076b760b053a9c2625f.zip |
[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
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r-- | llvm/docs/CommandGuide/llvm-objcopy.rst | 26 |
1 files changed, 13 insertions, 13 deletions
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, ``<section>`` must be formatted as ``<segment name>,<section name>``. +.. option:: --redefine-sym <old>=<new> + + Rename symbols called ``<old>`` to ``<new>`` in the output. Can be specified + multiple times to rename multiple symbols. + +.. option:: --redefine-syms <filename> + + Rename symbols in the output as described in the file ``<filename>``. 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 <old>=<new> - - Rename symbols called ``<old>`` to ``<new>`` in the output. Can be specified - multiple times to rename multiple symbols. - -.. option:: --redefine-syms <filename> - - Rename symbols in the output as described in the file ``<filename>``. 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 <old>=<new>[,<flag>,...] Rename sections called ``<old>`` to ``<new>`` in the output, and apply any |