From: Kim Phillips Date: Mon, 22 Feb 2010 19:34:10 -0600 Subject: [U-Boot] [PATCH V2] mkimage: SEGFAULT with imximage on 64 bit systems In-Reply-To: <1265379362-8794-1-git-send-email-sbabic@denx.de> References: <1264760533-17490-1-git-send-email-sbabic@denx.de> <1265379362-8794-1-git-send-email-sbabic@denx.de> Message-ID: <20100222193410.eeccc9c2.kim.phillips@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, 5 Feb 2010 15:16:02 +0100 Stefano Babic 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 > --- Acked-by: Kim Phillips ..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