Re: [U-Boot] [PATCH] mkimage: SEGFAULT with imximage on 64 bit systems

2010-01-29 Thread Stefano Babic
Mike Frysinger wrote: > man this is terrible terrible code. using 64bit casts may fix 64bit systems, > but doesnt seem right on 32bit systems as you'd introduce more pointer/size > mismatches. You are right - it works on 32 bit systems for the only reason that I compute a fix offset inside a st

Re: [U-Boot] [PATCH] mkimage: SEGFAULT with imximage on 64 bit systems

2010-01-29 Thread Mike Frysinger
On Friday 29 January 2010 05:22:13 Stefano Babic wrote: > Running mkimage to generate an imximage produces a SEGFAULT > on 64 bit machines due to pointer arithmetic limited to 32 bit. man this is terrible terrible code. using 64bit casts may fix 64bit systems, but doesnt seem right on 32bit syst

[U-Boot] [PATCH] mkimage: SEGFAULT with imximage on 64 bit systems

2010-01-29 Thread Stefano Babic
Running mkimage to generate an imximage produces a SEGFAULT on 64 bit machines due to pointer arithmetic limited to 32 bit. Signed-off-by: Stefano Babic --- tools/imximage.c | 10 +- tools/imximage.h |2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tools/imxima