u-boot-brain/arch/mips
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
..
cpu mips: time: Only compile the weak get_tbclk() when needed 2020-07-18 14:23:24 +02:00
dts mips: Add support for SoM "VoCore2". 2020-04-27 20:30:14 +02:00
include/asm mips: reloc: Change R_MIPS_NONE to catch pre-reloc BSS usage 2020-07-18 14:23:25 +02:00
lib mips: reloc: Change R_MIPS_NONE to catch pre-reloc BSS usage 2020-07-18 14:23:25 +02:00
mach-ath79 common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-bmips common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
mach-jz47xx common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-mscc common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-mtmips common: Drop linux/bitops.h from common header 2020-05-18 21:19:23 -04:00
mach-pic32 common: Drop init.h from common header 2020-05-18 17:33:33 -04:00
config.mk kconfig / kbuild: Re-sync with Linux 4.19 2020-04-10 11:18:32 -04:00
Kconfig mips: mtmips: add SPL support 2020-04-27 20:30:12 +02:00
Makefile mips: rename mach-mt7620 to mach-mtmips 2019-05-03 16:43:11 +02:00
Makefile.postlink SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00