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)
commit2fc93e5bafdae7cf6373479e054e9f3943fde23c
treeb3657d18adbab1efaec4a750b888a5bbe0406be9
parentc174c0623b02d7ae0965fd089934a490a95294c3
imx: bootaux fix elf loading

This reverts the arch/arm/mach-imx/imx_bootaux.c changes of commit
805b3cac1e0c. 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 805b3cac1e0c ("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