Skip to content

Commit 6faf8bd

Browse files
committed
Update the man page
Add a description about the compression level of the debug info. Differential Revision: https://reviews.llvm.org/D71385
1 parent af5ca40 commit 6faf8bd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

lld/docs/ld.lld.1

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ may be
123123
.Cm none
124124
or
125125
.Cm zlib .
126+
The default compression level is 1 (fastest) as the debug info usually
127+
compresses well at that level, but if you want to compress it more,
128+
you can specify
129+
.Fl O2
130+
to set the compression level to 6.
126131
.It Fl -cref
127132
Output cross reference table.
128133
.It Fl -define-common , Fl d
@@ -330,7 +335,9 @@ Disable string merging.
330335
.It Cm 1
331336
Enable string merging.
332337
.It Cm 2
333-
Enable string tail merging.
338+
Enable string tail merging. If
339+
.Fl -compress-debug-sections
340+
is given, compress debug sections at compression level 6 instead of 1.
334341
.El
335342
.Pp
336343
.Fl O Ns Cm 1

0 commit comments

Comments
 (0)