Scroll to navigation

LD.LLD(1) User Commands LD.LLD(1)

NAME

ld.lld - manual page for ld.lld 6.0

DESCRIPTION

OVERVIEW: lld

USAGE: build-llvm/bin/ld.lld [options] <inputs>

OPTIONS:

Allow multiple definitions
Only set DT_NEEDED for shared libraries if used
Set DT_AUXILIARY field to the specified name
Link against shared libraries
Build a shared object
Do not link against shared libraries
Bind defined function symbols locally
Bind defined symbols locally
Generate build ID note
Generate build ID note
Change the input format of the inputs following this option
Link against shared libraries
Use colors in diagnostics
Use colors in diagnostics
Compress DWARF debug sections
Compress DWARF debug sections
Assign space to common symbols
Assign space to common symbols
Define a symbol alias
Define a symbol alias
Demangle symbol names
Disable new dynamic tags
Delete all local symbols
Delete temporary local symbols
Keep all symbols in the symbol table
Do not link against shared libraries
Assign space to common symbols
Which dynamic linker to use
Read a list of dynamic symbols
Read a list of dynamic symbols
Link against shared libraries
Assign space to common symbols
Request creation of .eh_frame_hdr section and PT_GNU_EH_FRAME segment header
Generate relocations in output
Enable new dynamic tags
End a grouping of objects that should be treated as if they were together in an archive
Name of entry point symbol
Name of entry point symbol
Maximum number of errors to emit before stopping (0 = no limit)
Maximum number of errors to emit before stopping (0 = no limit)
Report unresolved symbols as errors
Exclude static libraries from automatic export
Exclude static libraries from automatic export
Put a symbol in the dynamic symbol table
Put a symbol in the dynamic symbol table
Put symbols in the dynamic symbol table
Put symbols in the dynamic symbol table
Name of entry point symbol
Treat warnings as errors
Set DT_FILTER field to the specified name
Set DT_FILTER field to the specified name
Specify a finalizer function
Specify a finalizer function

--fix-cortex-a53-843419 Apply fixes for AArch64 Cortex-A53 erratum 843419

--format=<input-format> Change the input format of the inputs following this option

--format <input-format> Change the input format of the inputs following this option

Perform a full shutdown instead of calling _exit
Set DT_FILTER field to the specified name
Set DT_AUXILIARY field to the specified name
Enable garbage collection of unused sections
Generate .gdb_index section
Specify hash style (sysv, gnu or both)
Specify hash style (sysv, gnu or both)
Print option help
Set DT_SONAME
Enable ICF to also fold identical read only data
Enable identical code folding
Disable identical code folding
Set the base address
Set the base address
Specify an initializer function
Specify an initializer function
Add a directory to the library search path
Add a directory to the library search path
Root name of library to use
Root name of library to use
AA pipeline to run during LTO. Used in conjunction with -lto-newpm-passes
Passes to run during LTO
Optimization level for LTO
Number of LTO codegen partitions
Add a directory to the library search path
Root name of library to use
Print a link map to the specified file
Print a link map to the specified file
Enable merging .ARM.exidx entries
Print a link map to the standard output
Set target emulation
Always DT_NEEDED for shared libraries
Do not use colors in diagnostics
Do not assign space to common symbols
Do not demangle symbol names
Inhibit output of .interp section
Do not create .eh_frame_hdr section
Disable garbage collection of unused sections
Do not generate .gdb_index section
Disable STB_GNU_UNIQUE symbol binding
Disable merging .ARM.exidx entries
Do not set the text data sections to be writable
Do not list removed unused sections
Do not put read-only non-executable sections in their own segment
Do not run the linker multi-threaded
Report version scripts that refer undefined symbols
Report unresolved symbols even if the linker is creating a shared library
Restores the default behavior of loading archive members
Retain the executable output file whenever it is still usable
Do not link against shared libraries
Do not create a position independent executable
Only search directories specified on the command line
Set the text and data sections to be readable and writable
Specify the binary format for the output object file
Set the text and data sections to be readable and writable
YAML output file for optimization remarks
Include hotness informations in the optimization remarks file
Control how orphan sections are handled when linker script used
Control how orphan sections are handled when linker script used
Path to file to write output
Path to file to write output
Optimize output file size
Path to file to write output
Pack dynamic relocations in the given format (none or android)
Create a position independent executable
Create a position independent executable
specifies LTO options for compatibility with GNU linkers
specifies LTO options for compatibility with GNU linkers
List removed unused sections
Print a link map to the standard output
Generate relocations in output
Create relocatable object file
Dump linker invocation and input files for debugging
Dump linker invocation and input files for debugging
Retain only the symbols listed in the file
Retain only the symbols listed in the file
Add a DT_RUNPATH to the output
Add a DT_RUNPATH to the output
Quoting style for response files. Values supported: windows|posix
Quoting style for response files. Values supported: windows|posix
Add a DT_RUNPATH to the output
Create relocatable object file
Read linker script
Read linker script
Set address of section
Build a shared object
Set DT_SONAME
Set DT_SONAME
Specifies sections sorting rule when linkerscript is used
Specifies sections sorting rule when linkerscript is used
Start a grouping of objects that should be treated as if they were together in an archive
Do not link against shared libraries
Strip all symbols
Strip debugging information
Layout sections in the order specified by symbol file
Set the system root
Set the system root
Strip debugging information
Strip all symbols
Interpret R_ARM_TARGET1 as R_ARM_ABS32
Interpret R_ARM_TARGET1 as R_ARM_REL32
Interpret R_ARM_TARGET2 as <type>, where <type> is one of rel, abs, or got-rel
Interpret R_ARM_TARGET2 as <type>, where <type> is one of rel, abs, or got-rel
Same as --section-start with .bss as the sectionname
Same as --section-start with .bss as the sectionname
Same as --section-start with .data as the sectionname
Same as --section-start with .data as the sectionname
Path to ThinLTO cached object file directory
Pruning policy for the ThinLTO cache
Number of ThinLTO jobs
Run the linker multi-threaded
Trace references to symbols
Trace references to symbols
Print the names of the input files

--Ttext-segment=<value> Same as --section-start with .text as the sectionname

--Ttext-segment <value> Same as --section-start with .text as the sectionname

Same as --section-start with .text as the sectionname
Same as --section-start with .text as the sectionname
Read linker script
Print the names of the input files
Force undefined symbol during linking
Force undefined symbol during linking
Determine how to handle unresolved symbols
Determine how to handle unresolved symbols
Force undefined symbol during linking
Verbose mode
Read a version script
Read a version script
Display the version number and exit
Display the version number and exit
Display the version number
Warn about duplicate common symbols
Report unresolved symbols as warnings
Force load of all members in a static library
Use wrapper functions for symbol
Use wrapper functions for symbol
Delete temporary local symbols
Delete all local symbols
Trace references to symbols
Linker option extensions

build-llvm/bin/ld.lld: supported targets: elf32-i386 elf32-iamcu elf32-littlearm elf32-ntradbigmips elf32-ntradlittlemips elf32-powerpc elf32-tradbigmips elf32-tradlittlemips elf32-x86-64 elf64-amdgpu elf64-littleaarch64 elf64-powerpc elf64-tradbigmips elf64-tradlittlemips elf64-x86-64

August 2018 ld.lld 6.0