u-boot/arch
Bin Meng e719b6b0f8 x86: Enforce toolchain to generate 64-bit codes for 64-bit U-Boot
64-bit U-Boot image is a combination of 32-bit U-Boot (SPL) plus
64-bit U-Boot (proper). For the U-Boot proper, it has be compiled
to 64-bit object codes. Attempting to use a toolchain to compile
64-bit U-Boot for qemu-x86_64, like kernel.org 4.9 i386-linux-gcc,
fails with the following errors:

  arch/x86/cpu/intel_common/microcode.c:79:2: error: PIC register
  clobbered by 'ebx' in 'asm'

The issue is because toolchain is preconfigured to generate code
for the 32-bit architecture (i386), and currently '-m64' is missing
in the makefile fragment. Using kernel.org 4.9 x86_64-linux-gcc
works out of the box, since it is preconfigured to generate 64-bit
codes.

When compiling U-Boot SPL, '-m32' is passed to the toolchain, no
mater 32-bit (i386-linux-) or 64-bit (x86_64-linux) the toolchain
is preconfigured to generate.

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2017-08-01 20:17:02 +08:00
..
arc arc: Add support for HS Development Kit board 2017-06-29 19:34:10 +03:00
arm arm: mach-omap2: Align image address before cache operations 2017-07-31 12:21:39 -04:00
m68k Convert CONFIG_ENV_IS_IN_FLASH to Kconfig 2017-07-25 21:20:02 -04:00
microblaze microblaze: spl: configure SYS_MALLOC_F_LEN independently for SPL and full U-Boot 2017-07-27 14:59:03 +02:00
mips mips: spl: configure SYS_MALLOC_F_LEN independently for SPL and full U-Boot 2017-07-27 14:59:03 +02:00
nds32 nds32: Remove include files from common.h 2017-06-05 11:02:36 -04:00
nios2 fdt: Move fdt_fixup_ethernet to a common place 2017-05-01 09:11:59 -04:00
powerpc configs: Migrate CMD_NAND* 2017-07-31 12:21:40 -04:00
sandbox sandbox: remove os_putc() and os_puts() 2017-07-28 12:02:47 -06:00
sh Convert CONFIG_ENV_IS_IN_FLASH to Kconfig 2017-07-25 21:20:02 -04:00
x86 x86: Enforce toolchain to generate 64-bit codes for 64-bit U-Boot 2017-08-01 20:17:02 +08:00
xtensa board_f: Rename initdram() to dram_init() 2017-04-13 09:40:57 -04:00
.gitignore
Kconfig arch/x86: Select USB before selecting host driver 2017-07-30 10:30:25 +08:00