MIPS: make size of relocation table fixed but configurable
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Thu, 1 Nov 2018 01:02:21 +0000 (02:02 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Fri, 2 Nov 2018 21:39:07 +0000 (22:39 +0100)
commit963014641117291c15df2425caf46c7b4b979f18
tree02698bdef9005f995c36d87353c3f172e082836c
parent99431c1c21685fe63d46b6eac995b78ce9adce0a
MIPS: make size of relocation table fixed but configurable

Currently the size of the relocation table will be shrunk
to the actual size needed. Although this gives a maximal
space saving, it messes up the _end symbol. This breaks
features like appended DTBs because the _end symbol doesn't
point to the real end of the U-Boot binary.

Remove the size shrinking and make the size of the relocation
table fixed but configurable. This follows the Linux approach
and the user can adjust the size to his needs.

Also rename the relocation table section from .rel to .data.reloc
to follow the Linux approach and to avoid ambiguities with the
.rel.* sections added by the linker.

Reported-by: Lars Povlsen <lars.povlsen@microsemi.com>
Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
arch/mips/Kconfig
arch/mips/config.mk
arch/mips/cpu/u-boot.lds
tools/mips-relocs.c