]> git.baikalelectronics.ru Git - uboot.git/commit
mkimage: fix segfault on MacOS arm64
authorSergey V. Lobanov <sergey@lobanov.in>
Mon, 24 Jan 2022 23:29:44 +0000 (02:29 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 31 Jan 2022 15:17:16 +0000 (10:17 -0500)
commitba5941dd126a66ca7815d0307133cbb74eef7c0a
tree64cbf7e8d98c7bedce56aa0aa481797f917afd19
parent25d3b9d95218ed6eae0336d40101e48466fd7e95
mkimage: fix segfault on MacOS arm64

mkimage segfaults due to the ASLR mechanism on MacOS arm64

It is required to use _dyld_get_image_vmaddr_slide()
to prevent segfault on MacOS arm64

This patch is based on the discussion
https://github.com/u-boot/u-boot/commit/ec1e3d23845c56fec777ee3f66446fea462044a7

Thanks to Jessica Clarke, Ronny Kotzschmar and ptpt52 github user

Reviewed-by: Jessica Clarke <jrtc27@jrtc27.com>
Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
tools/imagetool.h