OVERVIEW: LLVM Linker USAGE: /usr/bin/lld-link [options] file... OPTIONS: /align: Section alignment /aligncomm: Set common symbol alignment /allowbind:no Disable DLL binding /allowbind Enable DLL binding (default) /allowisolation:no Disable DLL isolation /allowisolation Enable DLL isolation (default) /alternatename: Define weak alias /appcontainer:no Image can run outside an app container (default) /appcontainer Image can only be run in an app container /base: Base address of the program /Brepro Use a hash of the executable as the PE header timestamp /build-id:no Do not Generate build ID /build-id Generate build ID (always on when generating PDB) /call-graph-ordering-file: Layout sections to optimize the given callgraph /call-graph-profile-sort:no Do not reorder sections with call graph profile /call-graph-profile-sort Reorder sections with call graph profile (default) /cetcompat:no Don't mark executable image as compatible with Control-flow Enforcement Technology (CET) Shadow Stack (default) /cetcompat Mark executable image as compatible with Control-flow Enforcement Technology (CET) Shadow Stack --color-diagnostics=[auto,always,never] Use colors in diagnostics (default: auto) --color-diagnostics Alias for --color-diagnostics=always /debug: Embed a symbol table in the image with option /debugtype: Debug Info Options /debug Embed a symbol table in the image /def: Use module-definition file /defaultlib: Add the library to the list of input files /delayload: Delay loaded DLL name /demangle:no Do not demangle symbols in output /demangle Demangle symbols in output (default) /dependentloadflag: Sets the default load flags used to resolve the statically linked imports of a module /diasdkdir: Set the location of the DIA SDK /dll Create a DLL /driver:uponly Set IMAGE_DLL_CHARACTERISTICS_WDM_DRIVER bit in PE header /driver:wdm Set IMAGE_FILE_UP_SYSTEM_ONLY bit in PE header /driver Generate a Windows NT Kernel Mode Driver /dwodir: Directory to store .dwo files when LTO and debug fission are used /dynamicbase:no Disable ASLR (default when /fixed) /dynamicbase Enable ASLR (default unless /fixed) /end-lib End group of objects treated as if they were in a library /entry: Name of entry point symbol /errorlimit: Maximum number of errors to emit before stopping (0 = no limit) /exclude-symbols: Exclude symbols from automatic export /export: Export a function /filealign: Section alignment in the output file /fixed:no Enable base relocations (default) /fixed Disable base relocations /force:multipleres Allow multiply defined resources when creating executables /force:multiple Allow multiply defined symbols when creating executables /force:unresolved Allow undefined symbols when creating executables /force Allow undefined and multiply defined symbols /functionpadmin: Prepares an image for hotpatching /guard: Control flow guard /heap: Size of the heap /highentropyva:no Disable 64-bit ASLR /highentropyva Enable 64-bit ASLR (default on 64-bit) /ignore: Specify warning codes to ignore /implib: Import library name /include: Force symbol to be added to symbol table as undefined one /includeoptional: Add symbol as undefined, but allow it to remain undefined /incremental:no Overwrite import library even if contents are unchanged /incremental Keep original import library if contents are unchanged /inferasanlibs:no No effect (default) /inferasanlibs Unused, generates a warning /integritycheck:no No effect (default) /integritycheck Set FORCE_INTEGRITY bit in PE header /largeaddressaware:no Disable large addresses (default on 32-bit) /largeaddressaware Enable large addresses (default on 64-bit) /libpath: Additional library search path /lib Act like lib.exe; must be first argument if present /linkrepro:directory Write repro.tar containing inputs and command to reproduce link /lldemit: Specify output type /lldignoreenv Ignore environment variables like %LIB% /lldltocache: Path to ThinLTO cached object file directory /lldltocachepolicy: Pruning policy for the ThinLTO cache /lldsavetemps Save intermediate LTO compilation results /lto-cs-profile-file: Context sensitive profile file path /lto-cs-profile-generate Perform context sensitive PGO instrumentation /lto-obj-path: output native object for merged LTO unit to this path /lto-pgo-warn-mismatch:no turn off warnings about profile cfg mismatch /lto-pgo-warn-mismatch turn on warnings about profile cfg mismatch (default)> /lto-sample-profile: Sample profile file path /machine: Specify target platform /manifest: NO disables manifest output; EMBED[,ID=#] embeds manifest as resource in the image /manifestdependency: Attributes for element in manifest file; implies /manifest /manifestfile: Manifest output path, with /manifest /manifestinput: Additional manifest inputs; only valid with /manifest:embed /manifestuac: User access control /manifest Create .manifest file /mapinfo: Include the specified information in a map file /merge: Combine sections /mllvm: Options to pass to LLVM /natvis: Path to natvis file to embed in the PDB --no-color-diagnostics Alias for --color-diagnostics=never /nodefaultlib: Remove a default library /nodefaultlib Remove all default libraries /noentry Don't add reference to DllMainCRTStartup; only valid with /dll /noimplib Don't output an import lib /nxcompat:no Disable data execution provention /nxcompat Enable data execution prevention (default) /opt: Control optimizations /order: Put functions in order /out: Path to file to write output /pdb: PDB file path /pdbaltpath: PDB file path to embed in the image /pdbpagesize: PDB page size /pdbsourcepath: Base path used to make relative source file path absolute in PDB /pdbstream:= Embed the contents of in the PDB as named stream /pdbstripped: Stripped PDB file path /print-symbol-order: Print a symbol order specified by /call-graph-ordering-file and /call-graph-profile-sort into the specified file /release Set the Checksum in the header of an PE file /reproduce:filename Write tar file containing inputs and command to reproduce link --rsp-quoting= Quoting style for response files, 'windows' (default) or 'posix' /safeseh:no Don't produce an image with Safe Exception Handler /safeseh Produce an image with Safe Exception Handler (only for x86) /section: Specify section attributes /stack: Size of the stack /start-lib Start group of objects treated as if they were in a library /stub: Specify DOS stub file /subsystem: Specify subsystem /swaprun:cd Make loader run output binary from swap instead of from CD /swaprun:net Make loader run output binary from swap instead of from network /swaprun: Comma-separated list of 'cd' or 'net' /thinlto-emit-imports-files Emit .imports files with -thinlto-index-only /thinlto-index-only: -thinlto-index-only and also write native module names to file /thinlto-index-only Instead of linking, emit ThinLTO index files /thinlto-object-suffix-replace: 'old;new' replace old suffix with new suffix in ThinLTO index /thinlto-prefix-replace: 'old;new' replace old prefix with new prefix in ThinLTO outputs /threads: Number of threads. '1' disables multi-threading. By default all available hardware threads are used --time-trace-granularity= Minimum time granularity (in microseconds) traced by time profiler --time-trace= Record time trace to --time-trace Record time trace to file next to output /timestamp: Specify the PE header timestamp /tsaware:no Create non-Terminal Server aware executable /tsaware Create Terminal Server aware executable (default) /vctoolsdir: Set the location of the VC tools /vctoolsversion: Specify which VC tools version to use /version: Specify a version number in the PE header --version Display the version number and exit /vfsoverlay: Path to a vfsoverlay yaml file to optionally look for /defaultlib's in /wholearchive: Include all object files from this library /wholearchive Include all object files from all libraries /winsdkdir: Set the location of the Windows SDK /winsdkversion: Specify which SDK version to use /winsysroot: Adds several subdirectories to the library search paths /WX:no Don't treat warnings as errors (default) /WX Treat warnings as errors