]> git.baikalelectronics.ru Git - uboot.git/commit
imx: bootaux fix elf loading
authorMax Krummenacher <max.oss.09@gmail.com>
Thu, 11 Mar 2021 17:18:07 +0000 (18:18 +0100)
committerStefano Babic <sbabic@denx.de>
Thu, 8 Apr 2021 21:59:50 +0000 (23:59 +0200)
commita3d82b055517e45c8fdcb0c11981e51fa6f55e24
treeb3657d18adbab1efaec4a750b888a5bbe0406be9
parent4fda1dcfcc3656e0e3ccec7b00b5670f3e9cf931
imx: bootaux fix elf loading

This reverts the arch/arm/mach-imx/imx_bootaux.c changes of commit
5d0e1a798019. The loader function name was changed so that it does
not clash with the generically available function in lib/elf.c.

imx-bootaux loads an elf file linked for an auxilary core. Thus the
loader function requires address translation from the auxilary core's
address space to where those are mapped into U-Boot's address space.

So the elf loader is specific and must not be replaced with a generic
loader which doesn't provide the address translation functionality.

Fixes commit 5d0e1a798019 ("lib: elf: Move the generic elf
loading/validating functions to lib")

Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Acked-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com>
arch/arm/mach-imx/imx_bootaux.c