2015-07-25 05:03:07 +08:00
|
|
|
include "llvm/Option/OptParser.td"
|
|
|
|
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
/// Utility Functions
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
def output : Separate<["-"], "o">, MetaVarName<"<path>">,
|
|
|
|
HelpText<"Path to file to write output">;
|
2015-09-12 02:49:42 +08:00
|
|
|
|
|
|
|
def dynamic_linker : Separate<["-"], "dynamic-linker">,
|
|
|
|
HelpText<"Which dynamic linker to use">;
|
2015-09-12 05:18:56 +08:00
|
|
|
|
|
|
|
def rpath : Separate<["-"], "rpath">,
|
2015-09-12 05:26:42 +08:00
|
|
|
HelpText<"Add a DT_RUNPATH to the output">;
|
2015-09-12 06:42:45 +08:00
|
|
|
|
|
|
|
def shared : Flag<["-"], "shared">,
|
|
|
|
HelpText<"Build a shared object">;
|
2015-09-17 04:45:57 +08:00
|
|
|
|
|
|
|
def discard_all : Flag<["-"], "discard-all">,
|
|
|
|
HelpText<"Delete all local symbols">;
|
2015-09-21 05:58:12 +08:00
|
|
|
|
2015-09-21 07:35:56 +08:00
|
|
|
def alias_discard_all: Flag<["-"], "x">,
|
|
|
|
Alias<discard_all>;
|
|
|
|
|
2015-09-21 05:58:12 +08:00
|
|
|
def discard_locals : Flag<["-"], "discard-locals">,
|
|
|
|
HelpText<"Delete temporary local symbols">;
|
2015-09-21 07:35:56 +08:00
|
|
|
|
|
|
|
def alias_discard_locals: Flag<["-"], "X">,
|
|
|
|
Alias<discard_locals>;
|
2015-09-23 07:38:23 +08:00
|
|
|
|
2015-09-26 03:24:57 +08:00
|
|
|
def noinhibit_exec : Flag<["--"], "noinhibit-exec">,
|
|
|
|
HelpText<"Retain the executable output file whenever"
|
|
|
|
" it is still usable">;
|
|
|
|
|
2015-09-24 23:08:23 +08:00
|
|
|
def discard_none : Flag<["-"], "discard-none">,
|
|
|
|
HelpText<"Keep all symbols in the symbol table">;
|
|
|
|
|
2015-09-23 07:38:23 +08:00
|
|
|
def export_dynamic : Flag<["--"], "export-dynamic">,
|
|
|
|
HelpText<"Put symbols in the dynamic symbol table">;
|
2015-09-28 20:52:21 +08:00
|
|
|
|
2015-09-29 04:30:11 +08:00
|
|
|
def allow_multiple_definition: Flag<["--"], "allow-multiple-definition">,
|
|
|
|
HelpText<"Allow multiple definitions">;
|
|
|
|
|
2015-09-28 20:52:21 +08:00
|
|
|
def L : Joined<["-"], "L">, MetaVarName<"<dir>">,
|
|
|
|
HelpText<"Directory to search for libraries">;
|
|
|
|
|
|
|
|
def alias_L : Joined<["--"], "library-path=">,
|
|
|
|
Alias<L>;
|
|
|
|
|
|
|
|
def l : Joined<["-"], "l">, MetaVarName<"<libName>">,
|
|
|
|
HelpText<"Root name of library to use">;
|
|
|
|
|
|
|
|
def alias_l : Joined<["--"], "library=">,
|
|
|
|
Alias<l>;
|
2015-09-28 23:01:59 +08:00
|
|
|
|
|
|
|
def sysroot : Joined<["--"], "sysroot=">,
|
|
|
|
HelpText<"Set the system root">;
|
2015-09-30 00:40:13 +08:00
|
|
|
|
|
|
|
def entry : Separate<["--", "-"], "entry">, MetaVarName<"<entry>">,
|
|
|
|
HelpText<"Name of entry point symbol">;
|
|
|
|
|
|
|
|
def alias_entry : Separate<["-"], "e">,
|
|
|
|
Alias<entry>;
|
2015-10-01 08:24:54 +08:00
|
|
|
|
|
|
|
// Options listed below are silently ignored now.
|
|
|
|
def as_needed : Flag<["--"], "as-needed">;
|
|
|
|
def build_id : Flag<["--"], "build-id">;
|
|
|
|
def eh_frame_hdr : Flag<["--"], "eh-frame-hdr">;
|
|
|
|
def hash_style : Joined<["--"], "hash-style=">;
|
|
|
|
def m : Separate<["-"], "m">;
|
|
|
|
def no_as_needed : Flag<["--"], "no-as-needed">;
|
|
|
|
def z : Separate<["-"], "z">;
|