[PATCH] D121902: Fix llvm-strip --only-keep-debug documentation for ELF
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 17 23:50:39 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGc975668ffc30: Fix llvm-strip --only-keep-debug documentation for ELF (authored by jhenderson).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121902/new/
https://reviews.llvm.org/D121902
Files:
llvm/docs/CommandGuide/llvm-strip.rst
Index: llvm/docs/CommandGuide/llvm-strip.rst
===================================================================
--- llvm/docs/CommandGuide/llvm-strip.rst
+++ llvm/docs/CommandGuide/llvm-strip.rst
@@ -59,6 +59,15 @@
Write output to <file>. Multiple input files cannot be used in combination
with -o.
+.. option:: --only-keep-debug
+
+ Produce a debug file as the output that only preserves contents of sections
+ useful for debugging purposes.
+
+ For ELF objects, this removes the contents of `SHF_ALLOC` sections that are not
+ `SHT_NOTE` by making them `SHT_NOBITS` and shrinking the program headers where
+ possible.
+
.. option:: --regex
If specified, symbol and section names specified by other switches are treated
@@ -129,18 +138,6 @@
Read command-line options and commands from response file `<FILE>`.
-COFF-SPECIFIC OPTIONS
----------------------
-
-The following options are implemented only for COFF objects. If used with other
-objects, :program:`llvm-strip` will either emit an error or silently ignore
-them.
-
-.. option:: --only-keep-debug
-
- Remove the contents of non-debug sections from the output, but keep the section
- headers.
-
ELF-SPECIFIC OPTIONS
--------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D121902.416403.patch
Type: text/x-patch
Size: 1217 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220318/0d2dcf0b/attachment.bin>
More information about the llvm-commits
mailing list