[lld] [LLD] [Docs] explain --unresolved-symbols options (PR #165937)
Florian Mayer via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 31 16:03:25 PDT 2025
https://github.com/fmayer created https://github.com/llvm/llvm-project/pull/165937
Tested with `groff -t -e -mandoc -Tascii lld/docs/ld.lld.1 | less`
>From a72649f480c5f86ae47e40cee7f15914303c41be Mon Sep 17 00:00:00 2001
From: Florian Mayer <fmayer at google.com>
Date: Fri, 31 Oct 2025 16:03:09 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.7
---
lld/docs/ld.lld.1 | 13 +++++++++++++
1 file changed, 13 insertions(+)
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
More information about the llvm-commits
mailing list