u-boot/arch
Stefan Roese c372813105 mips: reloc: Change R_MIPS_NONE to catch pre-reloc BSS usage
This patch changes the R_MIPS_NONE define from 0 to a magic value. This
makes it possible to better detect any forbidden pre-relocation usage
of BSS variables, as they are often zero'ed and then relocation is
stopped too early.

Additionally the error message is improved to also print the faulting
address. This helps finding the root-cause for this breakage by
comparing this address with the values in System.map.

This patch helps a lot when working on pre-relocation code, like the
Octeon DDR init code, where such variables have hit me multiple times
now.

Signed-off-by: Stefan Roese <sr@denx.de>
Cc: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
Cc: Aaron Williams <awilliams@marvell.com>
Cc: Chandrakala Chavva <cchavva@marvell.com>
2020-07-18 14:23:25 +02:00
..
arc common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
arm treewide: convert bd_t to struct bd_info manually 2020-07-17 10:46:44 -04:00
m68k treewide: convert bd_t to struct bd_info manually 2020-07-17 10:46:44 -04:00
microblaze Remove CROSS_COMPILE default from arch/*/config.mk 2020-07-01 10:11:03 -04:00
mips mips: reloc: Change R_MIPS_NONE to catch pre-reloc BSS usage 2020-07-18 14:23:25 +02:00
nds32 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
nios2 Remove CROSS_COMPILE default from arch/*/config.mk 2020-07-01 10:11:03 -04:00
powerpc treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
riscv Merge branch 'next' 2020-07-06 15:46:38 -04:00
sandbox dm: acpi: Enhance acpi_get_name() 2020-07-17 14:32:24 +08:00
sh treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
x86 treewide: convert bd_t to struct bd_info by coccinelle 2020-07-17 09:30:13 -04:00
xtensa Remove CROSS_COMPILE default from arch/*/config.mk 2020-07-01 10:11:03 -04:00
.gitignore
Kconfig acpi: Enable ACPI table generation by default on x86 2020-07-17 14:32:24 +08:00
u-boot-elf.lds arch: Add explicit linker script for u-boot-elf 2020-04-03 11:52:55 -04:00