Skip to content

Conversation

@fmayer
Copy link
Contributor

@fmayer fmayer commented Oct 31, 2025

Tested with man lld/docs/ld.lld.1

Created using spr 1.3.7
@llvmbot llvmbot added the lld label Oct 31, 2025
@fmayer fmayer requested review from DanielKristofKiss, MaskRay and pcc and removed request for DanielKristofKiss October 31, 2025 23:03
@llvmbot
Copy link
Member

llvmbot commented Oct 31, 2025

@llvm/pr-subscribers-lld

Author: Florian Mayer (fmayer)

Changes

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 --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

Copy link
Contributor

@pcc pcc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

(Easier way: man lld/docs/ld.lld.1)

@fmayer
Copy link
Contributor Author

fmayer commented Oct 31, 2025

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

(Easier way: man lld/docs/ld.lld.1)

Thanks

Created using spr 1.3.7
.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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

typo: they/they

Actually, suggest "Report unresolved symbols from shared libraries." and omit "Ignore ..."

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Created using spr 1.3.7
@fmayer fmayer requested a review from MaskRay November 1, 2025 17:51
@fmayer fmayer merged commit eda719f into main Nov 2, 2025
11 checks passed
@fmayer fmayer deleted the users/fmayer/spr/lld-docs-explain-unresolved-symbols-options branch November 2, 2025 18:25
DEBADRIBASAK pushed a commit to DEBADRIBASAK/llvm-project that referenced this pull request Nov 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants