llvm-project/lld/ELF/Options.td

49 lines
1.5 KiB
TableGen
Raw Normal View History

include "llvm/Option/OptParser.td"
//===----------------------------------------------------------------------===//
/// Utility Functions
//===----------------------------------------------------------------------===//
def output : Separate<["-"], "o">, MetaVarName<"<path>">,
HelpText<"Path to file to write output">;
def dynamic_linker : Separate<["-"], "dynamic-linker">,
HelpText<"Which dynamic linker to use">;
2015-09-12 05:18:56 +08:00
def rpath : Separate<["-"], "rpath">,
HelpText<"Add a DT_RUNPATH to the output">;
def shared : Flag<["-"], "shared">,
HelpText<"Build a shared object">;
def discard_all : Flag<["-"], "discard-all">,
HelpText<"Delete all local symbols">;
def alias_discard_all: Flag<["-"], "x">,
Alias<discard_all>;
def discard_locals : Flag<["-"], "discard-locals">,
HelpText<"Delete temporary local symbols">;
def alias_discard_locals: Flag<["-"], "X">,
Alias<discard_locals>;
//===----------------------------------------------------------------------===//
/// Ignored options
//===----------------------------------------------------------------------===//
def dashg : Flag<["-"], "g">,
HelpText<"Ignored.">;
def Qy : Flag<["-"], "Qy">,
HelpText<"Ignored for SVR4 Compatibility">;
def qmagic : Flag<["-"], "qmagic">,
HelpText<"Ignored for Linux Compatibility">;
def sunassert : Flag<["-"], "assert">,
HelpText<"Ignored for SunOS Compatibility">;
def export_dynamic : Flag<["--"], "export-dynamic">,
HelpText<"Put symbols in the dynamic symbol table">;