include "llvm/Option/OptParser.td" // For options whose names are multiple letters, either one dash or // two can precede the option name except those that start with 'o'. class F: Flag<["--", "-"], name>; class J: Joined<["--", "-"], name>; class S: Separate<["--", "-"], name>; class JS: JoinedOrSeparate<["--", "-"], name>; def Bsymbolic: F<"Bsymbolic">, HelpText<"Bind defined symbols locally">; def Bsymbolic_functions: F<"Bsymbolic-functions">, HelpText<"Bind defined function symbols locally">; def Bdynamic: F<"Bdynamic">, HelpText<"Link against shared libraries">; def Bstatic: F<"Bstatic">, HelpText<"Do not link against shared libraries">; def build_id: F<"build-id">, HelpText<"Generate build ID note">; def build_id_eq: J<"build-id=">, HelpText<"Generate build ID note">; def L: JoinedOrSeparate<["-"], "L">, MetaVarName<"">, HelpText<"Add a directory to the library search path">; def O: Joined<["-"], "O">, HelpText<"Optimize output file size">; def allow_multiple_definition: F<"allow-multiple-definition">, HelpText<"Allow multiple definitions">; def as_needed: F<"as-needed">, HelpText<"Only set DT_NEEDED for shared libraries if used">; def disable_new_dtags: F<"disable-new-dtags">, HelpText<"Disable new dynamic tags">; def discard_all: F<"discard-all">, HelpText<"Delete all local symbols">; def discard_locals: F<"discard-locals">, HelpText<"Delete temporary local symbols">; def discard_none: F<"discard-none">, HelpText<"Keep all symbols in the symbol table">; def dynamic_linker: S<"dynamic-linker">, HelpText<"Which dynamic linker to use">; def dynamic_list: S<"dynamic-list">, HelpText<"Read a list of dynamic symbols">; def eh_frame_hdr: F<"eh-frame-hdr">, HelpText<"Request creation of .eh_frame_hdr section and PT_GNU_EH_FRAME segment header">; def enable_new_dtags: F<"enable-new-dtags">, HelpText<"Enable new dynamic tags">; def end_lib: F<"end-lib">, HelpText<"End a grouping of objects that should be treated as if they were together in an archive">; def entry: S<"entry">, MetaVarName<"">, HelpText<"Name of entry point symbol">; def export_dynamic: F<"export-dynamic">, HelpText<"Put symbols in the dynamic symbol table">; def export_dynamic_symbol: S<"export-dynamic-symbol">, HelpText<"Put a symbol in the dynamic symbol table">; def fatal_warnings: F<"fatal-warnings">, HelpText<"Treat warnings as errors">; def fini: S<"fini">, MetaVarName<"">, HelpText<"Specify a finalizer function">; def hash_style: S<"hash-style">, HelpText<"Specify hash style (sysv, gnu or both)">; def help: F<"help">, HelpText<"Print option help">; def icf: F<"icf=all">, HelpText<"Enable identical code folding">; def image_base : J<"image-base=">, HelpText<"Set the base address">; def gc_sections: F<"gc-sections">, HelpText<"Enable garbage collection of unused sections">; def init: S<"init">, MetaVarName<"">, HelpText<"Specify an initializer function">; def l: JoinedOrSeparate<["-"], "l">, MetaVarName<"">, HelpText<"Root name of library to use">; def lto_O: J<"lto-O">, MetaVarName<"">, HelpText<"Optimization level for LTO">; def m: JoinedOrSeparate<["-"], "m">, HelpText<"Set target emulation">; def no_as_needed: F<"no-as-needed">, HelpText<"Always DT_NEEDED for shared libraries">; def no_demangle: F<"no-demangle">, HelpText<"Do not demangle symbol names">; def no_gnu_unique: F<"no-gnu-unique">, HelpText<"Disable STB_GNU_UNIQUE symbol binding">; def no_whole_archive: F<"no-whole-archive">, HelpText<"Restores the default behavior of loading archive members">; def noinhibit_exec: F<"noinhibit-exec">, HelpText<"Retain the executable output file whenever it is still usable">; def no_undefined: F<"no-undefined">, HelpText<"Report unresolved symbols even if the linker is creating a shared library">; def no_undefined_version: F<"no-undefined-version">, HelpText<"Report version scripts that refer undefined symbols">; def o: JoinedOrSeparate<["-"], "o">, MetaVarName<"">, HelpText<"Path to file to write output">; def pie: F<"pie">, HelpText<"Create a position independent executable">; def print_gc_sections: F<"print-gc-sections">, HelpText<"List removed unused sections">; def reproduce: S<"reproduce">, HelpText<"Dump linker invocation and input files for debugging">; def rpath: S<"rpath">, HelpText<"Add a DT_RUNPATH to the output">; def relocatable: F<"relocatable">, HelpText<"Create relocatable object file">; def script: S<"script">, HelpText<"Read linker script">; def shared: F<"shared">, HelpText<"Build a shared object">; def soname: J<"soname=">, HelpText<"Set DT_SONAME">; def start_lib: F<"start-lib">, HelpText<"Start a grouping of objects that should be treated as if they were together in an archive">; def strip_all: F<"strip-all">, HelpText<"Strip all symbols">; def strip_debug: F<"strip-debug">, HelpText<"Strip debugging information">; def sysroot: J<"sysroot=">, HelpText<"Set the system root">; def threads: F<"threads">, HelpText<"Enable use of threads">; def trace: F<"trace">, HelpText<"Print the names of the input files">; def trace_symbol : J<"trace-symbol=">, HelpText<"Trace references to symbols">; def undefined: J<"undefined=">, HelpText<"Force undefined symbol during linking">; def unresolved_symbols: J<"unresolved-symbols=">, HelpText<"Determine how to handle unresolved symbols">; def rsp_quoting: J<"rsp-quoting=">, HelpText<"Quoting style for response files. Values supported: windows|posix">; def verbose: F<"verbose">, HelpText<"Verbose mode">; def version: F<"version">, HelpText<"Display the version number">; def version_script: S<"version-script">, HelpText<"Read a version script">; def warn_common: F<"warn-common">, HelpText<"Warn about duplicate common symbols">; def whole_archive: F<"whole-archive">, HelpText<"Force load of all members in a static library">; def wrap: S<"wrap">, MetaVarName<"">, HelpText<"Use wrapper functions for symbol">; def z: JoinedOrSeparate<["-"], "z">, MetaVarName<"