File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -37,9 +37,10 @@ multiple file formats.
3737
3838.. option :: --discard-all , -x
3939
40- Remove most local symbols from the output. Different file formats may limit
41- this to a subset of the local symbols. For example, file and section symbols in
42- ELF objects will not be discarded. Additionally, remove all debug sections.
40+ Remove most local symbols not referenced by relocations from the output.
41+ Different file formats may limit this to a subset of the local symbols. For
42+ example, file and section symbols in ELF objects will not be discarded.
43+ Additionally, remove all debug sections.
4344
4445.. option :: --enable-deterministic-archives , -D
4546
@@ -152,7 +153,7 @@ them.
152153
153154.. option :: --discard-locals , -X
154155
155- Remove local symbols starting with ".L" from the output.
156+ Remove local symbols starting with ".L" not referenced by relocations from the output.
156157
157158.. option :: --keep-file-symbols
158159
Original file line number Diff line number Diff line change @@ -169,7 +169,8 @@ Changes to the LLVM tools
169169
170170* llvm-objcopy now supports the ` --update-section ` flag for intermediate Mach-O object files.
171171* llvm-strip now supports continuing to process files on encountering an error.
172- * In llvm-objcopy's ELF port, ` --discard-locals ` and ` --discard-all ` now allow and preserve symbols referenced by relocations.
172+ * In llvm-objcopy/llvm-strip's ELF port, ` --discard-locals ` and ` --discard-all ` now allow and preserve symbols referenced by relocations.
173+ ([ #47468 ] ( https://github.com/llvm/llvm-project/issues/47468 ) )
173174
174175Changes to LLDB
175176---------------------------------
You can’t perform that action at this time.
0 commit comments