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

Kim Phillips kim.phillips at freescale.com
Tue Feb 23 02:34:10 CET 2010


On Fri, 5 Feb 2010 15:16:02 +0100
Stefano Babic <sbabic at denx.de> wrote:

> 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 <sbabic at denx.de>
> ---

Acked-by: Kim Phillips <kim.phillips at freescale.com>

..in that it gets rid of most warnings in a typical 83xx build:

... PCI HOST Configuring for MPC837XEMDS board...
imximage.c: In function ‘imximage_print_header’:
imximage.c:110: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
imximage.c:114: warning: cast from pointer to integer of different size
imximage.c: In function ‘imximage_parse_cfg_file’:
imximage.c:145: warning: passing argument 2 of ‘getline’ from incompatible pointer type
/usr/include/bits/stdio.h:116: note: expected ‘size_t *’ but argument is of type ‘uint32_t *’
imximage.c: In function ‘imximage_set_header’:
imximage.c:267: warning: cast from pointer to integer of different size
imximage.c:268: warning: cast from pointer to integer of different size
imximage.c:271: warning: cast from pointer to integer of different size
imximage.c:272: warning: cast from pointer to integer of different size
imximage.c:275: warning: cast from pointer to integer of different size

I'm about to send another patch fix a fix for the last warning.

Kim


More information about the U-Boot mailing list