arch: m68k: Implement relocation
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sat, 26 Aug 2023 22:25:36 +0000 (00:25 +0200)
committerAngelo Dureghello <angelo@kernel-space.org>
Wed, 6 Sep 2023 11:28:58 +0000 (13:28 +0200)
commit26af162ac8f8ab3222d32f00f06a4774a061150a
treea15efb3f50ae8be1a3d46f70f772c32ec4ad298f
parentbf10b9201c1ed198f76bc0a35fc64951de7583bc
arch: m68k: Implement relocation

Implement relocation for M68K. Perform all the updates in start.S
relocate_code in assemby, since it is a simple matter of traversing
the dynsym table and adding relocation offset - MONITOR_BASE to all
the items in that table. The necessity to deal with MONITOR_BASE is
a specific of M68K, where the ELF entry point is at offset 0x400,
which is the MONITOR_BASE, while TEXT_BASE is at offset 0 .

This also removes the one last user of NEEDS_MANUAL_RELOC, so that
could be finally cleaned up .

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
arch/Kconfig
arch/m68k/Kconfig
arch/m68k/config.mk
arch/m68k/cpu/mcf523x/start.S
arch/m68k/cpu/mcf52x2/start.S
arch/m68k/cpu/mcf530x/start.S
arch/m68k/cpu/mcf532x/start.S
arch/m68k/cpu/mcf5445x/start.S
arch/m68k/cpu/u-boot.lds