aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/CommandGuide
diff options
context:
space:
mode:
authorIlia Kuklin <ikuklin@accesssoftek.com>2024-03-21 17:05:35 +0500
committerGitHub <noreply@github.com>2024-03-21 17:05:35 +0500
commit4946cc37f4865b89fbebcfa0120183a11ae8d4ab (patch)
tree8c4c9c15281230678bd5f335e79695f9d952ba04 /llvm/docs/CommandGuide
parent2699072b4bc8d8d5e84eb66af38face73ceeb4d3 (diff)
downloadllvm-4946cc37f4865b89fbebcfa0120183a11ae8d4ab.zip
llvm-4946cc37f4865b89fbebcfa0120183a11ae8d4ab.tar.gz
llvm-4946cc37f4865b89fbebcfa0120183a11ae8d4ab.tar.bz2
[llvm-objcopy] Add --skip-symbol and --skip-symbols options (#80873)
Add --skip-symbol and --skip-symbols options that allow to skip symbols when executing other options that can change the symbol's name, binding or visibility, similar to an existing option --keep-symbol that keeps a symbol from being removed by other options.
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r--llvm/docs/CommandGuide/llvm-objcopy.rst13
1 files changed, 13 insertions, 0 deletions
diff --git a/llvm/docs/CommandGuide/llvm-objcopy.rst b/llvm/docs/CommandGuide/llvm-objcopy.rst
index 9d0cb7a..985d16e 100644
--- a/llvm/docs/CommandGuide/llvm-objcopy.rst
+++ b/llvm/docs/CommandGuide/llvm-objcopy.rst
@@ -464,6 +464,19 @@ them.
Read a list of symbols from <filename> and change their visibility to the
specified value. Visibility values: default, internal, hidden, protected.
+.. option:: --skip-symbol <symbol>
+
+ Do not change the parameters of symbol ``<symbol>`` when executing other
+ options that can change the symbol's name, binding or visibility.
+
+.. option:: --skip-symbols <filename>
+
+ Do not change the parameters of symbols named in the file ``<filename>`` when
+ executing other options that can change the symbol's name, binding or
+ visibility. In the file, each line represents a single symbol, with leading
+ and trailing whitespace ignored, as is anything following a '#'.
+ Can be specified multiple times to read names from multiple files.
+
.. option:: --split-dwo <dwo-file>
Equivalent to running :program:`llvm-objcopy` with :option:`--extract-dwo` and