darwin.opt revision 1.8
1; Processor-independent options for Darwin.
2
3; Copyright (C) 2005-2017 Free Software Foundation, Inc.
4;
5; This file is part of GCC.
6;
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
10; version.
11;
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
15; for more details.
16;
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/>.
20
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.
27
28all_load
29Driver Alias(Zall_load)
30
31allowable_client
32Driver Separate Alias(Zallowable_client)
33
34arch
35Driver RejectNegative Separate
36
37arch_errors_fatal
38Driver Alias(Zarch_errors_fatal)
39
40asm_macosx_version_min=
41Driver RejectNegative Joined
42
43bind_at_load
44Driver Alias(Zbind_at_load)
45
46bundle
47Driver Alias(Zbundle)
48
49bundle_loader
50Driver Separate Alias(Zbundle_loader)
51
52dead_strip
53Driver Alias(Zdead_strip)
54
55dependency-file
56C ObjC C++ ObjC++ Separate Alias(MF) MissingArgError(missing filename after %qs)
57
58dylib_file
59Driver Separate Alias(Zdylib_file)
60
61dylinker
62Driver
63
64dynamic
65Driver Alias(Zdynamic)
66
67dynamiclib
68Driver Alias(Zdynamiclib)
69
70exported_symbols_list
71Driver Separate Alias(Zexported_symbols_list)
72
73filelist
74Driver RejectNegative Separate
75
76findirect-virtual-calls
77Driver RejectNegative
78
79flat_namespace
80Driver RejectNegative Alias(Zflat_namespace)
81
82force_cpusubtype_ALL
83Driver RejectNegative Alias(Zforce_cpusubtype_ALL)
84
85force_flat_namespace
86Driver RejectNegative Alias(Zforce_flat_namespace)
87
88framework
89Driver RejectNegative Separate
90
91fterminated-vtables
92Driver RejectNegative
93
94gfull
95Driver
96
97gused
98Driver
99
100headerpad_max_install_names
101Driver
102
103image_base
104Driver Separate Alias(Zimage_base)
105
106init
107Driver Separate Alias(Zinit)
108
109install_name
110Driver Separate Alias(Zinstall_name)
111
112keep_private_externs
113Driver
114
115mconstant-cfstrings
116Target Report Var(darwin_constant_cfstrings) Init(1)
117Generate compile-time CFString objects.
118
119multi_module
120Driver RejectNegative Alias(Zmulti_module)
121
122multiply_defined
123Driver RejectNegative Separate Alias(Zmultiply_defined)
124
125multiply_defined_unused
126Driver RejectNegative Separate Alias(Zmultiplydefinedunused)
127
128no_dead_strip_inits_and_terms
129Driver Alias(Zno_dead_strip_inits_and_terms)
130
131nofixprebinding
132Driver
133
134nomultidefs
135Driver
136
137noprebind
138Driver
139
140noseglinkedit
141Driver
142
143object
144Driver
145
146prebind
147Driver
148
149prebind_all_twolevel_modules
150Driver
151
152preload
153Driver
154
155private_bundle
156Driver
157
158pthread
159Driver
160
161rdynamic
162Driver
163
164seg_addr_table
165Driver Separate Alias(Zseg_addr_table)
166
167seg_addr_table_filename
168Driver Separate Alias(Zfn_seg_addr_table_filename)
169
170segaddr
171Driver Separate Args(2) Alias(Zsegaddr)
172
173seglinkedit
174Driver
175
176segs_read_only_addr
177Driver Separate Alias(Zsegs_read_only_addr)
178
179segs_read_write_addr
180Driver Separate Alias(Zsegs_read_write_addr)
181
182single_module
183Driver Alias(Zsingle_module)
184
185twolevel_namespace
186Driver
187
188twolevel_namespace_hints
189Driver
190
191umbrella
192Driver Separate Alias(Zumbrella)
193
194unexported_symbols_list
195Driver Separate Alias(Zunexported_symbols_list)
196
197weak_reference_mismatches
198Driver Separate Alias(Zweak_reference_mismatches)
199
200whatsloaded
201Driver
202
203whyload
204Driver
205
206y
207Driver Joined
208
209Mach
210Driver
211
212Wnonportable-cfstrings
213Target Report Var(darwin_warn_nonportable_cfstrings) Init(1) Warning
214Warn if constant CFString objects contain non-portable characters.
215
216; Use new-style pic stubs if this is true, x86 only so far.
217matt-stubs
218Target Report Var(darwin_macho_att_stub) Init(1)
219Generate AT&T-style stubs for Mach-O.
220
221mdynamic-no-pic
222Target Common Report Mask(MACHO_DYNAMIC_NO_PIC)
223Generate code suitable for executables (NOT shared libs).
224
225mfix-and-continue
226Target Report Var(darwin_fix_and_continue)
227Generate code suitable for fast turn around debugging.
228
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.
233mmacosx-version-min=
234Target Joined Report Var(darwin_macosx_version_min) Init(DEF_MIN_OSX_VERSION)
235The earliest MacOS X version on which this program will run.
236
237mone-byte-bool
238Target RejectNegative Report Var(darwin_one_byte_bool)
239Set sizeof(bool) to 1.
240
241fapple-kext
242Target Report C++ Var(flag_apple_kext)
243Generate code for darwin loadable kernel extensions.
244
245mkernel
246Target Report Var(flag_mkernel)
247Generate code for the kernel or loadable kernel extensions.
248
249iframework
250Target RejectNegative C ObjC C++ ObjC++ Joined Separate 
251-iframework <dir>	Add <dir> to the end of the system framework include path.
252
253X
254Driver
255
256Zall_load
257Driver
258
259Zallowable_client
260Driver Separate
261
262Zarch_errors_fatal
263Driver
264
265Zbind_at_load
266Driver
267
268Zbundle
269Driver
270
271Zbundle_loader
272Driver Separate
273
274Zdead_strip
275Driver
276
277Zdylib_file
278Driver Separate
279
280Zdynamic
281Driver
282
283Zdynamiclib
284Driver
285
286Zexported_symbols_list
287Driver Separate
288
289Zfn_seg_addr_table_filename
290Driver Separate
291
292Zflat_namespace
293Driver
294
295Zforce_cpusubtype_ALL
296Driver
297
298Zforce_flat_namespace
299Driver
300
301Zimage_base
302Driver Separate
303
304Zinit
305Driver Separate
306
307Zinstall_name
308Driver Separate
309
310Zmulti_module
311Driver
312
313Zmultiply_defined
314Driver Separate
315
316Zmultiplydefinedunused
317Driver Separate
318
319Zno_dead_strip_inits_and_terms
320Driver
321
322Zseg_addr_table
323Driver Separate
324
325Zsegaddr
326Driver Separate Args(2)
327
328Zsegs_read_only_addr
329Driver Separate
330
331Zsegs_read_write_addr
332Driver Separate
333
334Zsingle_module
335Driver
336
337Zumbrella
338Driver Separate
339
340Zunexported_symbols_list
341Driver Separate
342
343Zweak_reference_mismatches
344Driver Separate
345
346client_name
347Driver Separate
348
349compatibility_version
350Driver Separate
351
352current_version
353Driver Separate
354
355dylinker_install_name
356Driver Separate
357
358pagezero_size
359Driver Separate
360
361read_only_relocs
362Driver Separate
363
364sectalign
365Driver Separate Args(3)
366
367sectcreate
368Driver Separate Args(3)
369
370sectobjectsymbols
371Driver Separate Args(2)
372
373sectorder
374Driver Separate Args(3)
375
376seg1addr
377Driver Separate
378
379segcreate
380Driver Separate Args(3)
381
382segprot
383Driver Separate Args(3)
384
385segs_read_only_addr
386Driver Separate
387
388segs_read_write_addr
389Driver Separate
390
391sub_library
392Driver Separate
393
394sub_umbrella
395Driver Separate
396
397; Certain aspects of code-gen may be improved / adjusted if the version of ld64
398; is sufficiently modern.
399mtarget-linker
400Target RejectNegative Joined Separate Report Var(darwin_target_linker) Init(LD64_VERSION)
401The version of ld64 in use for this toolchain.
402
403undefined
404Driver Separate
405