[lld] 3d570a5 - [ELF][docs] Mention LLD_REPRODUCE and LLD_VERSION

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


Author: Fangrui Song
Date: 2023-02-09T14:38:17-08:00
New Revision: 3d570a5c5f6630c8c34c2323e7d04eb1c63c7a32

URL: https://github.com/llvm/llvm-project/commit/3d570a5c5f6630c8c34c2323e7d04eb1c63c7a32
DIFF: https://github.com/llvm/llvm-project/commit/3d570a5c5f6630c8c34c2323e7d04eb1c63c7a32.diff

LOG: [ELF][docs] Mention LLD_REPRODUCE and LLD_VERSION

Reviewed By: peter.smith

Differential Revision: https://reviews.llvm.org/D143600

Added: 
    

Modified: 
    lld/docs/ld.lld.1

Removed: 
    


################################################################################
diff  --git a/lld/docs/ld.lld.1 b/lld/docs/ld.lld.1
index edeb7c4bfe37c..09b82995ead41 100644
--- a/lld/docs/ld.lld.1
+++ b/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 @@ Create a
 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 
diff erences in the binary caused by LLD version number 
diff erences.
+.El
+
 .Sh IMPLEMENTATION NOTES
 .Nm Ap s
 handing of archive files (those with a


        


More information about the llvm-commits mailing list