binutils/binutils: 2.23.2 is a 2_23_or_later (ie. has gold)
Thus spake Niels:
This commit adds support for binutils 2.23.2
http://crosstool-ng.org/hg/crosstool-ng/rev/bc4b36e3df0c
However, in 'config/binutils/binutils.in <http://binutils.in>' the
Kconfig option to select this version of binutils does not automatically
select the symbol 'BINUTILS_2_23_or_later'. This makes gold unavailable
for the latest version of binutils. I'm not sure whether this is on
purpose or not, my impression is that you forgot to add the line "select
BINUTILS_2_23_or_later".
The problem still persists in the latest version in the repository
(032ebcc89c96).
Reported-by: Niels Penneman <niels@penneman.org>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
1 # Target definition: architecture, optimisations, etc...
8 # Pre-declare target optimisation variables
9 config ARCH_SUPPORTS_BOTH_MMU
10 config ARCH_SUPPORTS_BOTH_ENDIAN
11 config ARCH_SUPPORTS_32
12 config ARCH_SUPPORTS_64
13 config ARCH_SUPPORTS_WITH_ARCH
14 config ARCH_SUPPORTS_WITH_ABI
15 config ARCH_SUPPORTS_WITH_CPU
16 config ARCH_SUPPORTS_WITH_TUNE
17 config ARCH_SUPPORTS_WITH_FLOAT
18 config ARCH_SUPPORTS_WITH_FPU
19 config ARCH_SUPPORTS_SOFTFP
21 config ARCH_DEFAULT_HAS_MMU
22 config ARCH_DEFAULT_BE
23 config ARCH_DEFAULT_LE
24 config ARCH_DEFAULT_32
25 config ARCH_DEFAULT_64
42 source "config.gen/arch.in"
46 prompt "Suffix to the arch-part"
48 Some architectures have multiple variants and being able to specify
49 the variant instead of the arch is quite convenient. This is commonly
50 seen for instance when "armv5tel-" is used as a prefix instead of the
51 more generic "arm-", or with "alphaev6-" instead of "alpha-".
53 Whatever you enter here will be appended to the architecture-part of the
54 tuple, just before the first '-'. It will override any architecture-
55 specific suffix that crosstool-NG may compute.
57 If you are not sure about what this is, leave it blank.
59 #--------------------------------------
60 comment "Generic target options"
62 #--------------------------------------
65 prompt "Build a multilib toolchain (READ HELP!!!)"
67 If you say 'y' here, then the toolchain will also contain the C library
68 optimised for some variants of the selected architecture, besides the
71 This means the build time of the C library will be in O(nb_variants).
73 The list of variants is dependent on the architecture, and is hard-coded
74 in gcc, so it is not possible to say what variants to support, only
75 whether hard-coded variants should be supported or not.
77 NOTE: The multilib feature in crosstool-NG is not well-tested.
78 Use at your own risk, and report success and/or failure.
80 #--------------------------------------
81 config ARCH_SUPPORTS_BOTH_MMU
84 config ARCH_DEFAULT_HAS_MMU
89 prompt "Use the MMU" if ARCH_SUPPORTS_BOTH_MMU
90 default y if ARCH_DEFAULT_HAS_MMU
92 If your architecture has an MMU and you want to use it,
95 OTOH, if you don't want to use the MMU, or your arch
96 lacks an MMU, say 'N' here.
98 Note that some architectures (eg. ARM) has variants that
99 lacks an MMU (eg. ARM Cortex-M3), while other variants
100 have one (eg. ARM Cortex-A8).
102 #--------------------------------------
103 config ARCH_SUPPORTS_BOTH_ENDIAN
106 config ARCH_DEFAULT_BE
109 config ARCH_DEFAULT_LE
115 depends on ARCH_SUPPORTS_BOTH_ENDIAN
116 default ARCH_BE if ARCH_DEFAULT_BE
117 default ARCH_LE if ARCH_DEFAULT_LE
125 prompt "Little endian"
131 depends on ARCH_SUPPORTS_BOTH_ENDIAN
132 default "big" if ARCH_BE
133 default "little" if ARCH_LE
135 #--------------------------------------
136 config ARCH_SUPPORTS_32
139 config ARCH_SUPPORTS_64
142 config ARCH_DEFAULT_32
145 config ARCH_DEFAULT_64
150 default "32" if ARCH_32
151 default "64" if ARCH_64
156 default ARCH_32 if ARCH_DEFAULT_32
157 default ARCH_64 if ARCH_DEFAULT_64
162 depends on ARCH_SUPPORTS_32
167 depends on ARCH_SUPPORTS_64
171 #--------------------------------------
172 comment "Target optimisations"
174 config ARCH_SUPPORTS_WITH_ARCH
177 config ARCH_SUPPORTS_WITH_ABI
180 config ARCH_SUPPORTS_WITH_CPU
183 config ARCH_SUPPORTS_WITH_TUNE
186 config ARCH_SUPPORTS_WITH_FLOAT
189 config ARCH_SUPPORTS_WITH_FPU
192 config ARCH_SUPPORTS_SOFTFP
197 prompt "Architecture level"
198 depends on ARCH_SUPPORTS_WITH_ARCH
201 GCC uses this name to determine what kind of instructions it can emit
202 when generating assembly code. This option can be used in conjunction
203 with or instead of the ARCH_CPU option (above), or a (command-line)
206 This is the configuration flag --with-arch=XXXX, and the runtime flag
209 Pick a value from the gcc manual for your choosen gcc version and your
212 Leave blank if you don't know, or if your target architecture does not
217 prompt "Generate code for the specific ABI"
218 depends on ARCH_SUPPORTS_WITH_ABI
221 Generate code for the given ABI.
223 This is the configuration flag --with-abi=XXXX, and the runtime flag
226 Pick a value from the gcc manual for your choosen gcc version and your
229 Leave blank if you don't know, or if your target architecture does not
234 prompt "Emit assembly for CPU"
235 depends on ARCH_SUPPORTS_WITH_CPU
238 This specifies the name of the target processor. GCC uses this name
239 to determine what kind of instructions it can emit when generating
242 This is the configuration flag --with-cpu=XXXX, and the runtime flag
245 Pick a value from the gcc manual for your choosen gcc version and your
248 Leave blank if you don't know, or if your target architecture does not
253 prompt "Tune for CPU"
254 depends on ARCH_SUPPORTS_WITH_TUNE
257 This option is very similar to the ARCH_CPU option (above), except
258 that instead of specifying the actual target processor type, and hence
259 restricting which instructions can be used, it specifies that GCC should
260 tune the performance of the code as if the target were of the type
261 specified in this option, but still choosing the instructions that it
262 will generate based on the cpu specified by the ARCH_CPU option
263 (above), or a (command-line) -mcpu= option.
265 This is the configuration flag --with-tune=XXXX, and the runtime flag
268 Pick a value from the gcc manual for your choosen gcc version and your
271 Leave blank if you don't know, or if your target architecture does not
276 prompt "Use specific FPU"
277 depends on ARCH_SUPPORTS_WITH_FPU
280 On some targets (eg. ARM), you can specify the kind of FPU to emit
283 This is the configuration flag --with-fpu=XXX, and the runtime flag
286 See below wether to actually emit FP opcodes, or to emulate them.
288 Pick a value from the gcc manual for your choosen gcc version and your
291 Leave blank if you don't know, or if your target architecture does not
296 prompt "Floating point:"
297 depends on ARCH_SUPPORTS_WITH_FLOAT
301 prompt "hardware (FPU)"
303 Emit hardware floating point opcodes.
305 If you've got a processor with a FPU, then you want that.
306 If your hardware has no FPU, you still can use HW floating point, but
307 need to compile support for FPU emulation in your kernel. Needless to
308 say that emulating the FPU is /slooowwwww/...
310 One situation you'd want HW floating point without a FPU is if you get
311 binary blobs from different vendors that are compiling this way and
312 can't (don't wan't to) change.
314 config ARCH_FLOAT_SOFTFP
316 prompt "softfp (FPU)"
317 depends on ARCH_SUPPORTS_SOFTFP
319 Emit hardware floating point opcodes but use the software
320 floating point calling convention.
322 Architectures such as ARM use different registers for passing
323 floating point values depending on if they're in software mode
324 or hardware mode. softfp emits FPU instructions but uses the
325 software FP calling convention allowing softfp code to
326 interoperate with legacy software only code.
328 If in doubt, use 'software' or 'hardware' mode instead.
332 prompt "software (no FPU)"
334 Do not emit any hardware floating point opcode.
336 If your processor has no FPU, then you most probably want this, as it
337 is faster than emulating the FPU in the kernel.
343 prompt "Target CFLAGS"
346 Used to add specific options when compiling libraries of the toolchain,
347 that will run on the target (eg. libc.so).
349 Note that the options above for ARCH, ABI, CPU, TUNE and FPU will be
350 automatically used. You don't need to specify them here.
352 Leave blank if you don't know better.
354 config TARGET_LDFLAGS
356 prompt "Target LDFLAGS"
359 Used to add specific options when linking libraries of the toolchain,
360 that will run on your target.
362 Leave blank if you don't know better.
366 default "" if ! ARCH_SUPPORTS_WITH_FLOAT
367 default "hard" if ARCH_FLOAT_HW
368 default "soft" if ARCH_FLOAT_SW
369 default "softfp" if ARCH_FLOAT_SOFTFP
371 source "config.gen/arch.in.2"