Re: [PATCH V2] mkimage: fix segfault on MacOS arm64

2022-01-24 Thread Sergey V. Lobanov
Thank you, Jessica. I have rebased on current master, added Reviewed-by tag, fixed grammar/typos and sent v3 > On 25 Jan 2022, at 02:00, Jessica Clarke wrote: > > On Mon, Jan 17, 2022 at 02:07:13AM +0300, Sergey V. Lobanov wrote: >> mkimage segfaults due ASLR mechasim

[PATCH v3] mkimage: fix segfault on MacOS arm64

2022-01-24 Thread Sergey V. Lobanov
, Ronny Kotzschmar and ptpt52 github user Reviewed-by: Jessica Clarke Signed-off-by: Sergey V. Lobanov --- Changes since version 2: - Rebased on current master - Added Reviewed-by tag - Fixed typos and grammatical errors tools/imagetool.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools

Re: [PATCH V2] mkimage: fix segfault on MacOS arm64

2022-01-24 Thread Sergey V. Lobanov
CC: Jessica Clarke > On 17 Jan 2022, at 02:07, Sergey V. Lobanov wrote: > > mkimage segfaults due ASLR mechasim on MacOS arm64 > > It is required to use _dyld_get_image_vmaddr_slide() > to prevent segfault on MacOS arm64 > > This patch ased on the discussion > https

Re: [PATCH] mkimage: fix segfault on MacOS arm64

2022-01-16 Thread Sergey V. Lobanov
Thanks a lot for your review, I’ve sent PATCH v2 with the changes related to your comments https://lists.denx.de/pipermail/u-boot/2022-January/472133.html > On 11 Jan 2022, at 22:42, Jessica Clarke wrote: > > On 2 Dec 2021, at 22:16, Sergey V. Lobanov wrote: >> >>

[PATCH V2] mkimage: fix segfault on MacOS arm64

2022-01-16 Thread Sergey V. Lobanov
github user Signed-off-by: Sergey V. Lobanov --- tools/imagetool.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/imagetool.h b/tools/imagetool.h index e229a34ffc..a0985d93d2 100644 --- a/tools/imagetool.h +++ b/tools/imagetool.h @@ -271,11 +271,13 @@ int rockchip_copy_image(int fd

Re: [PATCH] mkimage: fix segfault on MacOS arm64

2021-12-25 Thread Sergey V. Lobanov
Hello, Can someone please review this? > On 2 Dec 2021, at 22:16, Sergey V. Lobanov wrote: > > mkimage segfaults due ASLR mechasim on MacOS arm64 > > It is required to use _dyld_get_image_vmaddr_slide() > to prevent segfault on MacOS arm64 > > This patch ased o

[PATCH] mkimage: fix segfault on MacOS arm64

2021-12-02 Thread Sergey V. Lobanov
github user Signed-off-by: Sergey V. Lobanov --- tools/imagetool.h | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tools/imagetool.h b/tools/imagetool.h index e229a34ffc..13775ff9b3 100644 --- a/tools/imagetool.h +++ b/tools/imagetool.h @@ -271,11 +271,16 @@ int

Re: [BUG] tools/mkimage is broken on macos arm64

2021-11-30 Thread Sergey V. Lobanov
1 3 0x100045e48 0x100044560 0x100045e50 0x100044780 0x100045e58 0x1000447d8 sh: dtc: command not found /Volumes/OpenWrt/u-boot/tools/mkimage: Can't open b.tmp: No such file or directory Process 46172 exited with status = 255 (0x00ff) > On 30 Nov 2021, at 18:02, Sergey V. Loban

Re: [BUG] tools/mkimage is broken on macos arm64

2021-11-30 Thread Sergey V. Lobanov
Volumes/u-boot/tools/mkimage' (arm64). (lldb) r -f aaa bbb Process 95950 launched: '/Volumes/u-boot/tools/mkimage' (arm64) BEFORE INIT AFTER INIT 1 3 0x100041e48 0x100041e50 0x100041e58 sh: dtc: command not found /Volumes/u-boot/tools/mkimage: Can't open bbb.tmp: No such file or direc

[RESEND BUG] tools/mkimage is broken on macos arm64

2021-11-30 Thread Sergey V. Lobanov
Hello, I have observed that u-boot mkimage is broken on macos arm64, it generates segfault every time. Reproducing: My MacOS environment: % sw_vers ProductName:macOS ProductVersion: 11.6 BuildVersion: 20G165 % uname -s -r -m Darwin 20.6.0 arm64 1. Build on macos arm64 % ex

[BUG] tools/mkimage is broken on macos arm64

2021-11-30 Thread Sergey V. Lobanov
Hello, I have observed that u-boot mkimage is broken on macos arm64, it generates segfault every time. Reproducing: My MacOS environment: % sw_vers ProductName:macOS ProductVersion: 11.6 BuildVersion: 20G165 % uname -s -r -m Darwin 20.6.0 arm64 1. Build on macos arm64 % ex