diff --git a/lld/MachO/Options.td b/lld/MachO/Options.td --- a/lld/MachO/Options.td +++ b/lld/MachO/Options.td @@ -200,72 +200,111 @@ HelpText<"Disable default reordering of global data accessed at launch time">, Flags<[HelpHidden]>, Group; +def image_base : Separate<["-"], "image_base">, + MetaVarName<"
">, + HelpText<"Preferred hex load address for a dylib or bundle.">, + Flags<[HelpHidden]>, + Group; +def seg1addr : Separate<["-"], "seg1addr">, + MetaVarName<"
">, + Alias, + HelpText<"Alias for -image_base">, + Flags<[HelpHidden]>, + Group; +def no_implicit_dylibs : Flag<["-"], "no_implicit_dylibs">, + HelpText<"Do not optimize public dylib transitive symbol references">, + Group; +def exported_symbols_order : Separate<["-"], "exported_symbols_order">, + MetaVarName<"">, + HelpText<"Specify frequently-used symbols in to optimize symbol exports">, + Flags<[HelpHidden]>, + Group; +def no_zero_fill_sections : Flag<["-"], "no_zero_fill_sections">, + HelpText<"Explicitly store zeroed data in the final image">, + Flags<[HelpHidden]>, + Group; +def merge_zero_fill_sections : Flag<["-"], "merge_zero_fill_sections">, + HelpText<"Merge all zeroed data into the __zerofill section">, + Flags<[HelpHidden]>, + Group; +def no_branch_islands : Flag<["-"], "no_branch_islands">, + HelpText<"Disable infra for branches beyond the maximum branch distance.">, + Flags<[HelpHidden]>, + Group; + +def grp_version : OptionGroup<"version">, HelpText<"VERSION CONTROL">; + def platform_version : MultiArg<["-"], "platform_version", 3>, MetaVarName<" ">, HelpText<"Platform (e.g., macos, ios, tvos, watchos, bridgeos, mac-catalyst, ios-sim, tvos-sim, watchos-sim, driverkit) and version numbers">, - Group; + Group; def sdk_version : Separate<["-"], "sdk_version">, HelpText<"This option is undocumented in ld64">, Flags<[HelpHidden]>, - Group; + Group; def macos_version_min : Separate<["-"], "macos_version_min">, MetaVarName<"">, HelpText<"Oldest macOS version for which linked output is useable">, - Flags<[HelpHidden]>, - Group; + Group; def macosx_version_min : Separate<["-"], "macosx_version_min">, MetaVarName<"">, Alias, HelpText<"Alias for -macos_version_min">, Flags<[HelpHidden]>, - Group; + Group; def ios_version_min : Separate<["-"], "ios_version_min">, MetaVarName<"">, HelpText<"Oldest iOS version for which linked output is useable">, Flags<[HelpHidden]>, - Group; + Group; def ios_simulator_version_min : Separate<["-"], "ios_simulator_version_min">, MetaVarName<"">, HelpText<"Oldest iOS simulator version for which linked output is useable">, Flags<[HelpHidden]>, - Group; + Group; def iphoneos_version_min : Separate<["-"], "iphoneos_version_min">, MetaVarName<"">, Alias, HelpText<"Alias for -ios_version_min">, Flags<[HelpHidden]>, - Group; -def image_base : Separate<["-"], "image_base">, - MetaVarName<"
">, - HelpText<"Preferred hex load address for a dylib or bundle.">, + Group; +def maccatalyst_version_min : Separate<["-"], "maccatalyst_version_min">, + MetaVarName<"">, + HelpText<"Oldest MacCatalyst version for which linked output is useable">, Flags<[HelpHidden]>, - Group; -def seg1addr : Separate<["-"], "seg1addr">, - MetaVarName<"
">, - Alias, - HelpText<"Alias for -image_base">, + Group; +def iosmac_version_min : Separate<["-"], "iosmac_version_min">, + MetaVarName<"">, + Alias, + HelpText<"Alias for -maccatalyst_version_min">, Flags<[HelpHidden]>, - Group; -def no_implicit_dylibs : Flag<["-"], "no_implicit_dylibs">, - HelpText<"Do not optimize public dylib transitive symbol references">, - Group; -def exported_symbols_order : Separate<["-"], "exported_symbols_order">, - MetaVarName<"">, - HelpText<"Specify frequently-used symbols in to optimize symbol exports">, + Group; +def uikitformac_version_min : Separate<["-"], "uikitformac_version_min">, + MetaVarName<"">, + Alias, + HelpText<"Alias for -maccatalyst_version_min">, Flags<[HelpHidden]>, - Group; -def no_zero_fill_sections : Flag<["-"], "no_zero_fill_sections">, - HelpText<"Explicitly store zeroed data in the final image">, + Group; +def tvos_version_min : Separate<["-"], "tvos_version_min">, + MetaVarName<"">, + HelpText<"Oldest tvOS version for which linked output is useable">, Flags<[HelpHidden]>, - Group; -def merge_zero_fill_sections : Flag<["-"], "merge_zero_fill_sections">, - HelpText<"Merge all zeroed data into the __zerofill section">, + Group; +def watchos_version_min : Separate<["-"], "watchos_version_min">, + MetaVarName<"">, + HelpText<"Oldest watchOS version for which linked output is useable">, Flags<[HelpHidden]>, - Group; -def no_branch_islands : Flag<["-"], "no_branch_islands">, - HelpText<"Disable infra for branches beyond the maximum branch distance.">, + Group; +def bridgeos_version_min : Separate<["-"], "bridgeos_version_min">, + MetaVarName<"">, + HelpText<"Oldest bridgeOS version for which linked output is useable">, Flags<[HelpHidden]>, - Group; + Group; +def driverkit_version_min : Separate<["-"], "driverkit_version_min">, + MetaVarName<"">, + HelpText<"Oldest DriverKit version for which linked output is useable">, + Flags<[HelpHidden]>, + Group; def grp_dylib : OptionGroup<"dylib">, HelpText<"DYNAMIC LIBRARIES (DYLIB)">; @@ -1202,20 +1241,6 @@ HelpText<"This option is undocumented in ld64">, Flags<[HelpHidden]>, Group; -def maccatalyst_version_min : Flag<["-"], "maccatalyst_version_min">, - HelpText<"This option is undocumented in ld64">, - Flags<[HelpHidden]>, - Group; -def iosmac_version_min : Flag<["-"], "iosmac_version_min">, - Alias, - HelpText<"Alias for -maccatalyst_version_min">, - Flags<[HelpHidden]>, - Group; -def uikitformac_version_min : Flag<["-"], "uikitformac_version_min">, - Alias, - HelpText<"Alias for -maccatalyst_version_min">, - Flags<[HelpHidden]>, - Group; def no_compact_unwind : Flag<["-"], "no_compact_unwind">, HelpText<"This option is undocumented in ld64">, Flags<[HelpHidden]>,