Index: ELF/Options.td =================================================================== --- ELF/Options.td +++ ELF/Options.td @@ -27,18 +27,20 @@ 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: F<"build-id">, HelpText<"Alias for --build-id=fast">; -def build_id_eq: J<"build-id=">, HelpText<"Generate build ID note">; +def build_id_eq: J<"build-id=">, HelpText<"Generate build ID note">, + MetaVarName<"[fast,md5,sha,uuid,0x]">; defm check_sections: B<"check-sections", "Check section addresses for overlaps (default)", "Do not check section addresses for overlaps">; defm compress_debug_sections: - Eq<"compress-debug-sections", "Compress DWARF debug sections">; + Eq<"compress-debug-sections", "Compress DWARF debug sections">, + MetaVarName<"[none,zlib]">; -defm defsym: Eq<"defsym", "Define a symbol alias">; +defm defsym: Eq<"defsym", "Define a symbol alias">, MetaVarName<"=">; defm library_path: Eq<"library-path", "Add a directory to the library search path">, MetaVarName<"">; @@ -70,10 +72,11 @@ def chroot: Separate<["--", "-"], "chroot">; def color_diagnostics: F<"color-diagnostics">, - HelpText<"Use colors in diagnostics">; + HelpText<"Alias for --color-diagnostics=always">; def color_diagnostics_eq: J<"color-diagnostics=">, - HelpText<"Use colors in diagnostics; one of 'always', 'never', 'auto'">; + HelpText<"Use colors in diagnostics">, + MetaVarName<"[auto,always,never]">; defm cref: B<"cref", "Output cross reference table", @@ -147,7 +150,7 @@ HelpText<"Apply fixes for AArch64 Cortex-A53 erratum 843419">; defm format: Eq<"format", "Change the input format of the inputs following this option">, - MetaVarName<"">; + MetaVarName<"[default,elf,binary]">; defm gc_sections: B<"gc-sections", "Enable garbage collection of unused sections", @@ -229,8 +232,8 @@ Eq<"orphan-handling", "Control how orphan sections are handled when linker script used">; defm pack_dyn_relocs: - Eq<"pack-dyn-relocs", "Pack dynamic relocations in the given format (none or android)">, - MetaVarName<"">; + Eq<"pack-dyn-relocs", "Pack dynamic relocations in the given format">, + MetaVarName<"[none,android]">; defm pie: B<"pie", "Create a position independent executable", @@ -306,7 +309,8 @@ defm trace_symbol: Eq<"trace-symbol", "Trace references to symbols">; -defm undefined: Eq<"undefined", "Force undefined symbol during linking">; +defm undefined: Eq<"undefined", "Force undefined symbol during linking">, + MetaVarName<"">; defm unresolved_symbols: Eq<"unresolved-symbols", "Determine how to handle unresolved symbols">; @@ -315,8 +319,8 @@ "Allow unused version in version script (default)", "Report version scripts that refer undefined symbols">; -defm rsp_quoting: - Eq<"rsp-quoting", "Quoting style for response files. Values supported: windows|posix">; +defm rsp_quoting: Eq<"rsp-quoting", "Quoting style for response files">, + MetaVarName<"[posix,windows]">; def v: Flag<["-"], "v">, HelpText<"Display the version number">; @@ -346,7 +350,7 @@ "Do not force load of all members in a static library (default)">; defm wrap: Eq<"wrap", "Use wrapper functions for symbol">, - MetaVarName<"">; + MetaVarName<"=">; def z: JoinedOrSeparate<["-"], "z">, MetaVarName<"