[PATCH] D143600: [ELF][docs] Mention LLD_REPRODUCE and LLD_VERSION

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 9 14:38:37 PST 2023


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG3d570a5c5f66: [ELF][docs] Mention LLD_REPRODUCE and LLD_VERSION (authored by MaskRay).

Changed prior to commit:
  https://reviews.llvm.org/D143600?vs=496241&id=496242#toc

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D143600/new/

https://reviews.llvm.org/D143600

Files:
  lld/docs/ld.lld.1


Index: lld/docs/ld.lld.1
===================================================================
--- lld/docs/ld.lld.1
+++ lld/docs/ld.lld.1
@@ -4,7 +4,7 @@
 .\"
 .\" This man page documents only lld's ELF linking support, obtained originally
 .\" from FreeBSD.
-.Dd May 12, 2019
+.Dd Feb 9, 2023
 .Dt LD.LLD 1
 .Os
 .Sh NAME
@@ -877,6 +877,22 @@
 segment.
 .El
 .El
+
+.Sh ENVIRONMENT VARIABLES
+.Bl -tag -width LC_CTYPE
+.It Ev LLD_REPRODUCE
+Create a reproduce tarball with the specified filename. If
+.Fl -reproduce
+is specified,
+.Fl -reproduce
+takes precedence.
+.It Ev LLD_VERSION
+ld.lld creates a section named
+.Cm .comment
+containing the LLD version string. The version string can be overridden by this environment variable,
+which is useful to eliminate differences in the binary caused by LLD version number differences.
+.El
+
 .Sh IMPLEMENTATION NOTES
 .Nm Ap s
 handing of archive files (those with a


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D143600.496242.patch
Type: text/x-patch
Size: 916 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230209/c60b9762/attachment.bin>


More information about the llvm-commits mailing list