1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
|
; Processor-independent options for Darwin.
; Copyright (C) 2005, 2007, 2010 Free Software Foundation, Inc.
;
; This file is part of GCC.
;
; GCC is free software; you can redistribute it and/or modify it under
; the terms of the GNU General Public License as published by the Free
; Software Foundation; either version 3, or (at your option) any later
; version.
;
; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
; WARRANTY; without even the implied warranty of MERCHANTABILITY or
; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
; for more details.
;
; You should have received a copy of the GNU General Public License
; along with GCC; see the file COPYING3. If not see
; <http://www.gnu.org/licenses/>.
; Various linker options have a -Z added so that they can get to specs
; processing without interference. Note that an option name with a
; prefix that matches another option name, that also takes an
; argument, being mapped to a -Z linker option, needs to be modified
; so the prefix is different, otherwise a '*' after the shorter option
; will match with the longer one.
all_load
Driver Alias(Zall_load)
allowable_client
Driver Separate Alias(Zallowable_client)
arch_errors_fatal
Driver Alias(Zarch_errors_fatal)
bind_at_load
Driver Alias(Zbind_at_load)
bundle
Driver Alias(Zbundle)
bundle_loader
Driver Separate Alias(Zbundle_loader)
dead_strip
Driver Alias(Zdead_strip)
dependency-file
C ObjC C++ ObjC++ Separate Alias(MF) MissingArgError(missing filename after %qs)
dylib_file
Driver Separate Alias(Zdylib_file)
dylinker
Driver
dynamic
Driver Alias(Zdynamic)
dynamiclib
Driver Alias(Zdynamiclib)
exported_symbols_list
Driver Separate Alias(Zexported_symbols_list)
filelist
Driver RejectNegative Separate
findirect-virtual-calls
Driver RejectNegative
flat_namespace
Driver RejectNegative Alias(Zflat_namespace)
force_cpusubtype_ALL
Driver RejectNegative Alias(Zforce_cpusubtype_ALL)
force_flat_namespace
Driver RejectNegative Alias(Zforce_flat_namespace)
framework
Driver RejectNegative Separate
fterminated-vtables
Driver RejectNegative
gfull
Driver
gused
Driver
headerpad_max_install_names
Driver
image_base
Driver Separate Alias(Zimage_base)
init
Driver Separate Alias(Zinit)
install_name
Driver Separate Alias(Zinstall_name)
keep_private_externs
Driver
mconstant-cfstrings
Target Report Var(darwin_constant_cfstrings) Init(1)
Generate compile-time CFString objects
multi_module
Driver RejectNegative Alias(Zmulti_module)
multiply_defined
Driver RejectNegative Separate Alias(Zmultiply_defined)
multiply_defined_unused
Driver RejectNegative Separate Alias(Zmultiplydefinedunused)
no_dead_strip_inits_and_terms
Driver Alias(Zno_dead_strip_inits_and_terms)
nofixprebinding
Driver
nomultidefs
Driver
noprebind
Driver
noseglinkedit
Driver
object
Driver
prebind
Driver
prebind_all_twolevel_modules
Driver
preload
Driver
private_bundle
Driver
pthread
Driver
seg_addr_table
Driver Separate Alias(Zseg_addr_table)
seg_addr_table_filename
Driver Separate Alias(Zfn_seg_addr_table_filename)
segaddr
Driver Separate Args(2) Alias(Zsegaddr)
seglinkedit
Driver
segs_read_only_addr
Driver Separate Alias(Zsegs_read_only_addr)
segs_read_write_addr
Driver Separate Alias(Zsegs_read_write_addr)
single_module
Driver Alias(Zsingle_module)
twolevel_namespace
Driver
twolevel_namespace_hints
Driver
umbrella
Driver Separate Alias(Zumbrella)
unexported_symbols_list
Driver Separate Alias(Zunexported_symbols_list)
weak_reference_mismatches
Driver Separate Alias(Zweak_reference_mismatches)
whatsloaded
Driver
whyload
Driver
y
Driver Joined
Mach
Driver
Wnonportable-cfstrings
Target Report Var(darwin_warn_nonportable_cfstrings) Init(1) Warning
Warn if constant CFString objects contain non-portable characters
; Use new-style pic stubs if this is true, x86 only so far.
matt-stubs
Target Report Var(darwin_macho_att_stub) Init(1)
Generate AT&T-style stubs for Mach-O
mdynamic-no-pic
Target Common Report Mask(MACHO_DYNAMIC_NO_PIC)
Generate code suitable for executables (NOT shared libs)
mfix-and-continue
Target Report Var(darwin_fix_and_continue)
Generate code suitable for fast turn around debugging
; The Init here is for the convenience of GCC developers, so that
; cc1 and cc1plus don't crash if no -mmacosx-version-min is passed. The
; driver will always pass a -mmacosx-version-min, so in normal use
; the Init is never used.
mmacosx-version-min=
Target Joined Report Var(darwin_macosx_version_min) Init("10.1")
The earliest MacOS X version on which this program will run
mone-byte-bool
Target RejectNegative Report Var(darwin_one_byte_bool)
Set sizeof(bool) to 1
fapple-kext
Target Report C++ Var(flag_apple_kext)
Generate code for darwin loadable kernel extensions
mkernel
Target Report Var(flag_mkernel)
Generate code for the kernel or loadable kernel extensions
iframework
Target RejectNegative C ObjC C++ ObjC++ Joined Separate
-iframework <dir> Add <dir> to the end of the system framework include path
X
Driver
Zall_load
Driver
Zallowable_client
Driver Separate
Zarch_errors_fatal
Driver
Zbind_at_load
Driver
Zbundle
Driver
Zbundle_loader
Driver Separate
Zdead_strip
Driver
Zdylib_file
Driver Separate
Zdynamic
Driver
Zdynamiclib
Driver
Zexported_symbols_list
Driver Separate
Zfn_seg_addr_table_filename
Driver Separate
Zflat_namespace
Driver
Zforce_cpusubtype_ALL
Driver
Zforce_flat_namespace
Driver
Zimage_base
Driver Separate
Zinit
Driver Separate
Zinstall_name
Driver Separate
Zmulti_module
Driver
Zmultiply_defined
Driver Separate
Zmultiplydefinedunused
Driver Separate
Zno_dead_strip_inits_and_terms
Driver
Zseg_addr_table
Driver Separate
Zsegaddr
Driver Separate Args(2)
Zsegs_read_only_addr
Driver Separate
Zsegs_read_write_addr
Driver Separate
Zsingle_module
Driver
Zumbrella
Driver Separate
Zunexported_symbols_list
Driver Separate
Zweak_reference_mismatches
Driver Separate
client_name
Driver Separate
compatibility_version
Driver Separate
current_version
Driver Separate
dylinker_install_name
Driver Separate
pagezero_size
Driver Separate
read_only_relocs
Driver Separate
sectalign
Driver Separate Args(3)
sectcreate
Driver Separate Args(3)
sectobjectsymbols
Driver Separate Args(2)
sectorder
Driver Separate Args(3)
seg1addr
Driver Separate
segcreate
Driver Separate Args(3)
segprot
Driver Separate Args(3)
segs_read_only_addr
Driver Separate
segs_read_write_addr
Driver Separate
sub_library
Driver Separate
sub_umbrella
Driver Separate
undefined
Driver Separate
|