u-boot/arch/x86/cpu
Bin Meng 3d2be8003c x86: Fix car_uninit weak symbol definition
Since commit 80df194f01 ("x86: detect unsupported relocation types"),
an error message is seen on QEMU x86 target during boot:

do_elf_reloc_fixups32: unsupported relocation type 0x1 at fff841f0, offset = 0xfff00087
do_elf_reloc_fixups32: unsupported relocation type 0x2 at fff841f8, offset = 0xfff00091

Check offset 0xfff00087 and 0xfff00091 in the u-boot ELF image,

fff00087  000df401 R_386_32          00000000   car_uninit
fff00091  000df402 R_386_PC32        00000000   car_uninit

we see R_386_32 and R_386_PC32 relocation type is generated for
symbol car_uninit, which is declared as a weak symbol in start.S.

However the actual weak symbol implementation ends up nowhere. As
we can see below, it's *UND*.

$ objdump -t u-boot | grep car_uninit
00000000  w      *UND*  00000000 car_uninit

With this fix, it is normal now.

$ objdump -t u-boot | grep car_uninit
fff00094  w    F .text.start    00000001 car_uninit

Reported-by: Hannes Schmelzer <hannes@schmelzer.or.at>
Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Tested-by: Hannes Schmelzer <oe5hpm@oevsv.at>
2018-10-28 21:02:15 +08:00
..
baytrail x86: Switch to use DM sysreset driver 2018-07-20 09:33:22 +08:00
braswell x86: Switch to use DM sysreset driver 2018-07-20 09:33:22 +08:00
broadwell SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
coreboot x86: Update mtrr functions to allow leaving cache alone 2018-10-09 04:40:27 -06:00
efi x86: zimage: Support booting Linux kernel from an EFI payload 2018-08-30 11:23:14 +08:00
i386 SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
intel_common x86: Use microcode update from device tree for all processors 2018-07-02 09:23:28 +08:00
ivybridge x86: Switch to use DM sysreset driver 2018-07-20 09:33:22 +08:00
qemu x86: Switch to use DM sysreset driver 2018-07-20 09:33:22 +08:00
quark x86: quark: Specify X86_TSC_TIMER_EARLY_FREQ 2018-10-22 17:51:45 +08:00
queensbay x86: irq: Remove chipset specific irq router drivers 2018-06-13 09:50:57 +08:00
tangier x86: tangier: pinmux: add API to configure protected pins 2018-09-17 17:35:52 +08:00
x86_64 x86: Fix the mystery of printch() during 64-bit boot 2018-10-22 17:51:45 +08:00
call32.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
config.mk SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
cpu.c x86: acpi: Don't touch ACPI hardware in write_acpi_tables() 2018-07-20 09:33:22 +08:00
cpu_x86.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
ioapic.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
irq.c x86: irq: Support discrete PIRQ routing registers via device tree 2018-06-13 09:50:57 +08:00
lapic.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile x86: efi: Refactor the directory of EFI app and payload support 2018-06-17 21:16:04 +08:00
mp_init.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
mtrr.c x86: Update mtrr functions to allow leaving cache alone 2018-10-09 04:40:27 -06:00
pci.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
resetvec.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sipi_vector.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
start.S x86: Fix car_uninit weak symbol definition 2018-10-28 21:02:15 +08:00
start16.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
start64.S x86: Fix the mystery of printch() during 64-bit boot 2018-10-22 17:51:45 +08:00
turbo.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u-boot-64.lds x86: Include bss subsections in linker script 2018-08-20 14:17:43 +02:00
u-boot-spl.lds SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
u-boot.lds x86: Include bss subsections in linker script 2018-08-20 14:17:43 +02:00
wakeup.S SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00