summaryrefslogtreecommitdiff
path: root/lld/docs
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-02-09 14:38:17 -0800
committerFangrui Song <i@maskray.me>2023-02-09 14:38:17 -0800
commit3d570a5c5f6630c8c34c2323e7d04eb1c63c7a32 (patch)
treebaa8794443d942fe0f93b530f0563f70916464f6 /lld/docs
parent8c85550549f1b2ba9a05a19a1936c01b1467b071 (diff)
downloadllvm-3d570a5c5f6630c8c34c2323e7d04eb1c63c7a32.tar.gz
[ELF][docs] Mention LLD_REPRODUCE and LLD_VERSION
Reviewed By: peter.smith Differential Revision: https://reviews.llvm.org/D143600
Diffstat (limited to 'lld/docs')
-rw-r--r--lld/docs/ld.lld.118
1 files changed, 17 insertions, 1 deletions
diff --git a/lld/docs/ld.lld.1 b/lld/docs/ld.lld.1
index edeb7c4bfe37..09b82995ead4 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 differences in the binary caused by LLD version number differences.
+.El
+
.Sh IMPLEMENTATION NOTES
.Nm Ap s
handing of archive files (those with a