[PATCH] D49938: [ELF] Update ld.lld.1
Peter Collingbourne via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 27 18:31:09 PDT 2018
pcc added inline comments.
================
Comment at: docs/ld.lld.1:43
field to the specified name.
-.It Fl -Bdynamic
+.It Fl -Bdynamic | Fl -dy
Link against shared libraries.
----------------
MaskRay wrote:
> ruiu wrote:
> > Is the vertical bar the right notation? Please mimic other options that have aliases.
> Ideally, a newline will be the best (which is also used in `ld.bfd.1`)
>
> But I don't know how to express that in groff_mdoc. A vertical bar compared with a comma is more clear here. `--version, -v` is the only example I find and I have updated it.
The only way that I can see to do it is like this:
```
diff --git a/lld/docs/ld.lld.1 b/lld/docs/ld.lld.1
index c9662856b89..d44995c842d 100644
--- a/lld/docs/ld.lld.1
+++ b/lld/docs/ld.lld.1
@@ -26,19 +26,24 @@ It accepts most of the same command line arguments and linker scripts
as GNU linkers.
.Pp
These options are available:
-.Bl -tag -width indent
+.Bl -tag -width indent -compact
+.Pp
.It Fl -allow-multiple-definition
Do not error if a symbol is defined multiple times.
The first definition will be used.
+.Pp
.It Fl -as-needed
Only set
.Dv DT_NEEDED
for shared libraries if used.
+.Pp
.It Fl -auxiliary Ns = Ns Ar value
Set the
.Dv DT_AUXILIARY
field to the specified name.
+.Pp
.It Fl -Bdynamic
+.It Fl -dy
Link against shared libraries.
.It Fl -Bstatic
Do not link against shared libraries.
```
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D49938
More information about the llvm-commits
mailing list