[docs] Sort ld.lld.1 options
Reviewers: ruiu Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D50022 llvm-svn: 338326
This commit is contained in:
parent
f72252e679
commit
f35ff042f4
|
@ -146,12 +146,12 @@ A value of zero indicates that there is no limit.
|
||||||
Report unresolved symbols as errors.
|
Report unresolved symbols as errors.
|
||||||
.It Fl -exclude-libs Ns = Ns Ar value
|
.It Fl -exclude-libs Ns = Ns Ar value
|
||||||
Exclude static libraries from automatic export.
|
Exclude static libraries from automatic export.
|
||||||
|
.It Fl -export-dynamic , Fl E
|
||||||
|
Put symbols in the dynamic symbol table.
|
||||||
.It Fl -export-dynamic-symbol Ns = Ns Ar symbol
|
.It Fl -export-dynamic-symbol Ns = Ns Ar symbol
|
||||||
Include
|
Include
|
||||||
.Ar symbol
|
.Ar symbol
|
||||||
in the dynamic symbol table.
|
in the dynamic symbol table.
|
||||||
.It Fl -export-dynamic , Fl E
|
|
||||||
Put symbols in the dynamic symbol table.
|
|
||||||
.It Fl -fatal-warnings
|
.It Fl -fatal-warnings
|
||||||
Treat warnings as errors.
|
Treat warnings as errors.
|
||||||
.It Fl -filter Ns = Ns Ar value , Fl F Ar value
|
.It Fl -filter Ns = Ns Ar value , Fl F Ar value
|
||||||
|
@ -204,6 +204,10 @@ Specify an initializer function.
|
||||||
Do not fold
|
Do not fold
|
||||||
.Ar symbol
|
.Ar symbol
|
||||||
during ICF.
|
during ICF.
|
||||||
|
.It Fl l Ar libName, Fl -library Ns = Ns Ar libName
|
||||||
|
Root name of library to use.
|
||||||
|
.It Fl L Ar dir , Fl -library-path Ns = Ns Ar dir
|
||||||
|
Add a directory to the library search path.
|
||||||
.It Fl -lto-aa-pipeline Ns = Ns Ar value
|
.It Fl -lto-aa-pipeline Ns = Ns Ar value
|
||||||
AA pipeline to run during LTO.
|
AA pipeline to run during LTO.
|
||||||
Used in conjunction with
|
Used in conjunction with
|
||||||
|
@ -214,15 +218,11 @@ Passes to run during LTO.
|
||||||
Optimization level for LTO.
|
Optimization level for LTO.
|
||||||
.It Fl -lto-partitions Ns = Ns Ar value
|
.It Fl -lto-partitions Ns = Ns Ar value
|
||||||
Number of LTO codegen partitions.
|
Number of LTO codegen partitions.
|
||||||
.It Fl L Ar dir , Fl -library-path Ns = Ns Ar dir
|
.It Fl m Ar value
|
||||||
Add a directory to the library search path.
|
Set target emulation.
|
||||||
.It Fl l Ar libName, Fl -library Ns = Ns Ar libName
|
|
||||||
Root name of library to use.
|
|
||||||
.It Fl -Map Ns = Ns Ar file , Fl M Ar file
|
.It Fl -Map Ns = Ns Ar file , Fl M Ar file
|
||||||
Print a link map to
|
Print a link map to
|
||||||
.Ar file .
|
.Ar file .
|
||||||
.It Fl m Ar value
|
|
||||||
Set target emulation.
|
|
||||||
.It Fl -no-as-needed
|
.It Fl -no-as-needed
|
||||||
Always set
|
Always set
|
||||||
.Dv DT_NEEDED
|
.Dv DT_NEEDED
|
||||||
|
@ -251,26 +251,18 @@ Report version scripts that refer undefined symbols.
|
||||||
Report unresolved symbols even if the linker is creating a shared library.
|
Report unresolved symbols even if the linker is creating a shared library.
|
||||||
.It Fl -no-whole-archive
|
.It Fl -no-whole-archive
|
||||||
Restores the default behavior of loading archive members.
|
Restores the default behavior of loading archive members.
|
||||||
.It Fl -noinhibit-exec
|
|
||||||
Retain the executable output file whenever it is still usable.
|
|
||||||
.It Fl -no-pie
|
.It Fl -no-pie
|
||||||
Do not create a position independent executable.
|
Do not create a position independent executable.
|
||||||
|
.It Fl -noinhibit-exec
|
||||||
|
Retain the executable output file whenever it is still usable.
|
||||||
.It Fl -nostdlib
|
.It Fl -nostdlib
|
||||||
Only search directories specified on the command line.
|
Only search directories specified on the command line.
|
||||||
.It Fl -oformat Ns = Ns Ar format
|
.It Fl o Ar path
|
||||||
Specify the format for the output object file.
|
Write the output executable, library, or object to
|
||||||
The only supported
|
.Ar path .
|
||||||
.Ar format
|
If not specified,
|
||||||
is
|
.Dv a.out
|
||||||
.Cm binary ,
|
is used as a default.
|
||||||
which produces output with no ELF header.
|
|
||||||
.It Fl -omagic , Fl N
|
|
||||||
Set the text and data sections to be readable and writable.
|
|
||||||
.It Fl -opt-remarks-filename Ar file
|
|
||||||
Write optimization remarks in YAML format to
|
|
||||||
.Ar file .
|
|
||||||
.It Fl -opt-remarks-with-hotness
|
|
||||||
Include hotness information in the optimization remarks file.
|
|
||||||
.It Fl O Ns Ar value
|
.It Fl O Ns Ar value
|
||||||
Optimize output file size.
|
Optimize output file size.
|
||||||
.Ar value
|
.Ar value
|
||||||
|
@ -287,12 +279,20 @@ Enable string tail merging.
|
||||||
.Pp
|
.Pp
|
||||||
.Fl O Ns Cm 1
|
.Fl O Ns Cm 1
|
||||||
is the default.
|
is the default.
|
||||||
.It Fl o Ar path
|
.It Fl -oformat Ns = Ns Ar format
|
||||||
Write the output executable, library, or object to
|
Specify the format for the output object file.
|
||||||
.Ar path .
|
The only supported
|
||||||
If not specified,
|
.Ar format
|
||||||
.Dv a.out
|
is
|
||||||
is used as a default.
|
.Cm binary ,
|
||||||
|
which produces output with no ELF header.
|
||||||
|
.It Fl -omagic , Fl N
|
||||||
|
Set the text and data sections to be readable and writable.
|
||||||
|
.It Fl -opt-remarks-filename Ar file
|
||||||
|
Write optimization remarks in YAML format to
|
||||||
|
.Ar file .
|
||||||
|
.It Fl -opt-remarks-with-hotness
|
||||||
|
Include hotness information in the optimization remarks file.
|
||||||
.It Fl -pie
|
.It Fl -pie
|
||||||
Create a position independent executable.
|
Create a position independent executable.
|
||||||
.It Fl -print-gc-sections
|
.It Fl -print-gc-sections
|
||||||
|
@ -384,6 +384,12 @@ Same as
|
||||||
with
|
with
|
||||||
.Li .data
|
.Li .data
|
||||||
as the sectionname.
|
as the sectionname.
|
||||||
|
.It Fl -Ttext Ns = Ns Ar value
|
||||||
|
Same as
|
||||||
|
.Fl -section-start
|
||||||
|
with
|
||||||
|
.Li .text
|
||||||
|
as the sectionname.
|
||||||
.It Fl -thinlto-cache-dir Ns = Ns Ar value
|
.It Fl -thinlto-cache-dir Ns = Ns Ar value
|
||||||
Path to ThinLTO cached object file directory.
|
Path to ThinLTO cached object file directory.
|
||||||
.It Fl -thinlto-cache-policy Ns = Ns Ar value
|
.It Fl -thinlto-cache-policy Ns = Ns Ar value
|
||||||
|
@ -393,33 +399,27 @@ Number of ThinLTO jobs.
|
||||||
.It Fl -threads
|
.It Fl -threads
|
||||||
Run the linker multi-threaded.
|
Run the linker multi-threaded.
|
||||||
This option is enabled by default.
|
This option is enabled by default.
|
||||||
|
.It Fl -trace
|
||||||
|
Print the names of the input files.
|
||||||
.It Fl -trace-symbol Ns = Ns Ar symbol , Fl y Ar symbol
|
.It Fl -trace-symbol Ns = Ns Ar symbol , Fl y Ar symbol
|
||||||
Trace references to
|
Trace references to
|
||||||
.Ar symbol .
|
.Ar symbol .
|
||||||
.It Fl -trace
|
|
||||||
Print the names of the input files.
|
|
||||||
.It Fl -Ttext Ns = Ns Ar value
|
|
||||||
Same as
|
|
||||||
.Fl -section-start
|
|
||||||
with
|
|
||||||
.Li .text
|
|
||||||
as the sectionname.
|
|
||||||
.It Fl -undefined Ns = Ns Ar symbol , Fl u Ar symbol
|
.It Fl -undefined Ns = Ns Ar symbol , Fl u Ar symbol
|
||||||
Force
|
Force
|
||||||
.Ar symbol
|
.Ar symbol
|
||||||
to be an undefined symbol during linking.
|
to be an undefined symbol during linking.
|
||||||
.It Fl -unresolved-symbols Ns = Ns Ar value
|
.It Fl -unresolved-symbols Ns = Ns Ar value
|
||||||
Determine how to handle unresolved symbols.
|
Determine how to handle unresolved symbols.
|
||||||
|
.It Fl v
|
||||||
|
Display the version number and proceed with linking if object files are
|
||||||
|
specified.
|
||||||
|
.It Fl V , Fl -version
|
||||||
|
Display the version number and exit.
|
||||||
.It Fl -verbose
|
.It Fl -verbose
|
||||||
Verbose mode.
|
Verbose mode.
|
||||||
.It Fl -version-script Ns = Ns Ar file
|
.It Fl -version-script Ns = Ns Ar file
|
||||||
Read version script from
|
Read version script from
|
||||||
.Ar file .
|
.Ar file .
|
||||||
.It Fl V , Fl -version
|
|
||||||
Display the version number and exit.
|
|
||||||
.It Fl v
|
|
||||||
Display the version number and proceed with linking if object files are
|
|
||||||
specified.
|
|
||||||
.It Fl -warn-backrefs
|
.It Fl -warn-backrefs
|
||||||
Warn about reverse or cyclic dependencies to or between static archives.
|
Warn about reverse or cyclic dependencies to or between static archives.
|
||||||
This can be used to ensure linker invocation remains compatible with
|
This can be used to ensure linker invocation remains compatible with
|
||||||
|
|
Loading…
Reference in New Issue