config/binutils.in
author "Yann E. MORIN" <yann.morin.1998@free.fr>
Wed Aug 01 19:02:06 2012 +0200 (2012-08-01)
changeset 3023 c71635732a59
parent 1897 0a3b9af21490
child 3117 2b64e1b502cd
permissions -rw-r--r--
cc/gcc: always build core pass-1

Up until now, all conditions requiring a core pass-1 was when the
threading implementation used was NPTL. So we only built the core
pass-1 when NPTL was used.

Now, things have changed (what? when? Dunno...), and some bare-metal
canadian toolchains fail to build if a core pass-1 is not present.

OTOH, a core pass-1, although not needed for non-NPTL builds, does
no harm at all if it is present.

So, unconditionally build a core pass-1 (but still pass conditional
options to the core backend).

Reported-by: Per Arnold Blaasmo <Per-Arnold.Blaasmo@atmel.com>
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
     1 # Binary utilities menu
     2 
     3 menu "Binary utilities"
     4 
     5 choice
     6     bool
     7     prompt "Binary format:"
     8 
     9 if ARCH_USE_MMU || BARE_METAL
    10 
    11 config ARCH_BINFMT_ELF
    12     bool
    13     prompt "ELF"
    14     help
    15       This will make your system build ELF executables,
    16       suitable for architectures with an MMU.
    17 
    18 endif # ARCH_USE_MMU
    19 
    20 if ! ARCH_USE_MMU
    21 
    22 config ARCH_BINFMT_FLAT
    23     bool
    24     prompt "Flat"
    25     help
    26       This will build flat binaries, suitable for
    27       MMU-less architectures.
    28 
    29 config ARCH_BINFMT_FDPIC
    30     bool
    31     prompt "FD_PIC ELF"
    32     help
    33       This will build FD_PIC ELF binaries, suitable for
    34       MMU-less architectures that still require to use
    35       shared libraries (FIXME).
    36 
    37 endif # ! ARCH_USE_MMU
    38 
    39 endchoice
    40 
    41 source "config/binutils/binutils.in"
    42 source "config/binutils/elf2flt.in"
    43 source "config/binutils/sstrip.in"
    44 
    45 endmenu