On Sun, 30 Jul 2023 at 16:21, Marek Vasut
<[email protected]> wrote:
>
> 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 .
>
> Signed-off-by: Marek Vasut <[email protected]>
> ---
> Cc: Angelo Dureghello <[email protected]>
> Cc: Angelo Durgehello <[email protected]>
> Cc: Bin Meng <[email protected]>
> Cc: Heinrich Schuchardt <[email protected]>
> Cc: Huan Wang <[email protected]>
> Cc: Marek Vasut <[email protected]>
> Cc: Michal Simek <[email protected]>
> Cc: Ovidiu Panait <[email protected]>
> Cc: Simon Glass <[email protected]>
> Cc: Zong Li <[email protected]>
> ---
>  arch/Kconfig                   |  1 -
>  arch/m68k/Kconfig              |  4 +--
>  arch/m68k/config.mk            |  6 ++--
>  arch/m68k/cpu/mcf523x/start.S  | 57 ++++++++++++++++++++------------
>  arch/m68k/cpu/mcf52x2/start.S  | 57 ++++++++++++++++++++------------
>  arch/m68k/cpu/mcf530x/start.S  | 59 +++++++++++++++++++++-------------
>  arch/m68k/cpu/mcf532x/start.S  | 57 ++++++++++++++++++++------------
>  arch/m68k/cpu/mcf5445x/start.S | 57 ++++++++++++++++++++------------
>  arch/m68k/cpu/u-boot.lds       | 14 ++++++++
>  9 files changed, 204 insertions(+), 108 deletions(-)

yay!

Reviewed-by: Simon Glass <[email protected]>

Reply via email to