aboutsummaryrefslogtreecommitdiff
path: root/llvm/docs/CommandGuide
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2025-03-17 20:09:52 -0700
committerGitHub <noreply@github.com>2025-03-17 20:09:52 -0700
commite758237352f70fad028f3947e6f0404e50fec024 (patch)
treea0f25b9921f2577111d665cdd0607681b604d086 /llvm/docs/CommandGuide
parent3c4b9317916ccd2e18c30b1540589518a4c7c88a (diff)
downloadllvm-e758237352f70fad028f3947e6f0404e50fec024.zip
llvm-e758237352f70fad028f3947e6f0404e50fec024.tar.gz
llvm-e758237352f70fad028f3947e6f0404e50fec024.tar.bz2
[docs] Mention --discard-locals/--discard-all change for llvm-strip
PR #130704 updated llvm-strip as well. Suggested by @nga888 Pull Request: https://github.com/llvm/llvm-project/pull/131491
Diffstat (limited to 'llvm/docs/CommandGuide')
-rw-r--r--llvm/docs/CommandGuide/llvm-strip.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/llvm/docs/CommandGuide/llvm-strip.rst b/llvm/docs/CommandGuide/llvm-strip.rst
index b077799..b4d6dc0 100644
--- a/llvm/docs/CommandGuide/llvm-strip.rst
+++ b/llvm/docs/CommandGuide/llvm-strip.rst
@@ -37,9 +37,10 @@ multiple file formats.
.. option:: --discard-all, -x
- Remove most local symbols from the output. Different file formats may limit
- this to a subset of the local symbols. For example, file and section symbols in
- ELF objects will not be discarded. Additionally, remove all debug sections.
+ Remove most local symbols not referenced by relocations from the output.
+ Different file formats may limit this to a subset of the local symbols. For
+ example, file and section symbols in ELF objects will not be discarded.
+ Additionally, remove all debug sections.
.. option:: --enable-deterministic-archives, -D
@@ -152,7 +153,7 @@ them.
.. option:: --discard-locals, -X
- Remove local symbols starting with ".L" from the output.
+ Remove local symbols starting with ".L" not referenced by relocations from the output.
.. option:: --keep-file-symbols