1 ; Processor-independent options for Darwin.
3 ; Copyright (C) 2005-2018 Free Software Foundation, Inc.
5 ; This file is part of GCC.
7 ; GCC is free software; you can redistribute it and/or modify it under
8 ; the terms of the GNU General Public License as published by the Free
9 ; Software Foundation; either version 3, or (at your option) any later
12 ; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
13 ; WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 ; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 ; You should have received a copy of the GNU General Public License
18 ; along with GCC; see the file COPYING3. If not see
19 ; <http://www.gnu.org/licenses/>.
21 ; Various linker options have a -Z added so that they can get to specs
22 ; processing without interference. Note that an option name with a
23 ; prefix that matches another option name, that also takes an
24 ; argument, being mapped to a -Z linker option, needs to be modified
25 ; so the prefix is different, otherwise a '*' after the shorter option
26 ; will match with the longer one.
29 Driver Alias(Zall_load)
32 Driver Separate Alias(Zallowable_client)
35 Driver RejectNegative Separate
38 Driver Alias(Zarch_errors_fatal)
40 asm_macosx_version_min=
41 Driver RejectNegative Joined
44 Driver Alias(Zbind_at_load)
50 Driver Separate Alias(Zbundle_loader)
53 Driver Alias(Zdead_strip)
56 C ObjC C++ ObjC++ Separate Alias(MF) MissingArgError(missing filename after %qs)
59 Driver Separate Alias(Zdylib_file)
65 Driver Alias(Zdynamic)
68 Driver Alias(Zdynamiclib)
71 Driver Separate Alias(Zexported_symbols_list)
74 Driver RejectNegative Separate
76 findirect-virtual-calls
80 Driver RejectNegative Alias(Zflat_namespace)
83 Driver RejectNegative Alias(Zforce_cpusubtype_ALL)
86 Driver RejectNegative Alias(Zforce_flat_namespace)
89 Driver RejectNegative Separate
100 headerpad_max_install_names
104 Driver Separate Alias(Zimage_base)
107 Driver Separate Alias(Zinit)
110 Driver Separate Alias(Zinstall_name)
116 Target Report Var(darwin_constant_cfstrings) Init(1)
117 Generate compile-time CFString objects.
120 Driver RejectNegative Alias(Zmulti_module)
123 Driver RejectNegative Separate Alias(Zmultiply_defined)
125 multiply_defined_unused
126 Driver RejectNegative Separate Alias(Zmultiplydefinedunused)
128 no_dead_strip_inits_and_terms
129 Driver Alias(Zno_dead_strip_inits_and_terms)
149 prebind_all_twolevel_modules
165 Driver Separate Alias(Zseg_addr_table)
167 seg_addr_table_filename
168 Driver Separate Alias(Zfn_seg_addr_table_filename)
171 Driver Separate Args(2) Alias(Zsegaddr)
177 Driver Separate Alias(Zsegs_read_only_addr)
180 Driver Separate Alias(Zsegs_read_write_addr)
183 Driver Alias(Zsingle_module)
188 twolevel_namespace_hints
192 Driver Separate Alias(Zumbrella)
194 unexported_symbols_list
195 Driver Separate Alias(Zunexported_symbols_list)
197 weak_reference_mismatches
198 Driver Separate Alias(Zweak_reference_mismatches)
212 Wnonportable-cfstrings
213 Target Report Var(darwin_warn_nonportable_cfstrings) Init(1) Warning
214 Warn if constant CFString objects contain non-portable characters.
216 ; Use new-style pic stubs if this is true, x86 only so far.
218 Target Report Var(darwin_macho_att_stub) Init(1)
219 Generate AT&T-style stubs for Mach-O.
222 Target Common Report Mask(MACHO_DYNAMIC_NO_PIC)
223 Generate code suitable for executables (NOT shared libs).
226 Target Report Var(darwin_fix_and_continue)
227 Generate code suitable for fast turn around debugging.
229 ; The Init here is for the convenience of GCC developers, so that cc1
230 ; and cc1plus don't crash if no -mmacosx-version-min is passed. The
231 ; driver will always pass a -mmacosx-version-min, so in normal use the
232 ; Init is never used.
234 Target Joined Report Var(darwin_macosx_version_min) Init(DEF_MIN_OSX_VERSION)
235 The earliest MacOS X version on which this program will run.
238 Target RejectNegative Report Var(darwin_one_byte_bool)
239 Set sizeof(bool) to 1.
242 Target Report C++ Var(flag_apple_kext)
243 Generate code for darwin loadable kernel extensions.
246 Target Report Var(flag_mkernel)
247 Generate code for the kernel or loadable kernel extensions.
250 Target RejectNegative C ObjC C++ ObjC++ Joined Separate
251 -iframework <dir> Add <dir> to the end of the system framework include path.
286 Zexported_symbols_list
289 Zfn_seg_addr_table_filename
295 Zforce_cpusubtype_ALL
298 Zforce_flat_namespace
316 Zmultiplydefinedunused
319 Zno_dead_strip_inits_and_terms
326 Driver Separate Args(2)
331 Zsegs_read_write_addr
340 Zunexported_symbols_list
343 Zweak_reference_mismatches
349 compatibility_version
355 dylinker_install_name
365 Driver Separate Args(3)
368 Driver Separate Args(3)
371 Driver Separate Args(2)
374 Driver Separate Args(3)
380 Driver Separate Args(3)
383 Driver Separate Args(3)
397 ; Certain aspects of code-gen may be improved / adjusted if the version of ld64
398 ; is sufficiently modern.
400 Target RejectNegative Joined Separate Report Var(darwin_target_linker) Init(LD64_VERSION)
401 The version of ld64 in use for this toolchain.