Skip to content

[docs] Mention --discard-locals/--discard-all change for llvm-strip #131491

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions llvm/docs/CommandGuide/llvm-strip.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down
3 changes: 2 additions & 1 deletion llvm/docs/ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,8 @@ Changes to the LLVM tools

* llvm-objcopy now supports the `--update-section` flag for intermediate Mach-O object files.
* llvm-strip now supports continuing to process files on encountering an error.
* In llvm-objcopy's ELF port, `--discard-locals` and `--discard-all` now allow and preserve symbols referenced by relocations.
* In llvm-objcopy/llvm-strip's ELF port, `--discard-locals` and `--discard-all` now allow and preserve symbols referenced by relocations.
([#47468](https://github.com/llvm/llvm-project/issues/47468))

Changes to LLDB
---------------------------------
Expand Down
Loading