[lld] [LLD] [Docs] explain --unresolved-symbols options (PR #165937)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 31 16:03:58 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-lld

Author: Florian Mayer (fmayer)

<details>
<summary>Changes</summary>

Tested with `groff -t -e -mandoc -Tascii lld/docs/ld.lld.1 | less`


---
Full diff: https://github.com/llvm/llvm-project/pull/165937.diff


1 Files Affected:

- (modified) lld/docs/ld.lld.1 (+13) 


``````````diff
diff --git a/lld/docs/ld.lld.1 b/lld/docs/ld.lld.1
index bb1a53ad1112a..297596d50c2c6 100644
--- a/lld/docs/ld.lld.1
+++ b/lld/docs/ld.lld.1
@@ -719,6 +719,19 @@ a given pattern are handled as if they were given as arguments of
 Creates a separate output section for every orphan input section.
 .It Fl -unresolved-symbols Ns = Ns Ar value
 Determine how to handle unresolved symbols.
+.Pp
+.Bl -tag -width 2n -compact
+.It Cm report-all
+Report unresolved symbols (default).
+.It Cm ignore-in-object-files
+Only report unresolved symbols contained in shared libraries. Ignore if the are
+contained in object files.
+.It Cm ignore-in-shared-libs
+Only report unresolved symbols contained in object files. Ignore if they are
+contained in shared libraries.
+.It Cm ignore-all
+Do not report unresolved symbols.
+.El
 .It Fl -use-android-relr-tags
 Use SHT_ANDROID_RELR / DT_ANDROID_RELR* tags instead of SHT_RELR / DT_RELR*.
 .It Fl v , Fl V

``````````

</details>


https://github.com/llvm/llvm-project/pull/165937


More information about the llvm-commits mailing list