Muli Ben-Yehuda
2006-Feb-25 17:27 UTC
[Xen-devel] [PATCH] fix mkelf32 when cross compiling on i386 for x86-64
Use strtoull to parse the final_exec_addr value from the command line. Whe cross compiling on i386 for x86-64 unsigned long is 32 bit, which leads to final_exec_addr being truncated to 32 bits by strtoul, which leads to grub refusing to load the resulting image. Please apply. Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org> diff -r 86eba2e17a39 -r ef4fe9970b03 xen/arch/x86/boot/mkelf32.c --- a/xen/arch/x86/boot/mkelf32.c Sat Feb 25 18:36:23 2006 +0200 +++ b/xen/arch/x86/boot/mkelf32.c Sat Feb 25 19:07:43 2006 +0200 @@ -245,7 +245,7 @@ int main(int argc, char **argv) inimage = argv[1]; outimage = argv[2]; loadbase = strtoul(argv[3], NULL, 16); - final_exec_addr = strtoul(argv[4], NULL, 16); + final_exec_addr = strtoull(argv[4], NULL, 16); infd = open(inimage, O_RDONLY); if ( infd == -1 ) -- Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Woody Marvel
2006-Feb-26 01:28 UTC
Re: [Xen-devel] [PATCH] fix mkelf32 when cross compiling on i386 for x86-64
thanks, worked on cross compile w/ x86_64 target system -------------------------------------------- On Sat, 2006-02-25 at 19:27 +0200, Muli Ben-Yehuda wrote:> > > fix mkelf32 when cross compiling on > i386 for x86-64 > Date: > Sat, 25 Feb 2006 19:27:15 +0200 > (09:27 PST)-- Sincerely, Woody Marvel IBM Linux Technology Center Open Source Virtualization email: marvel@us.ibm.com 503-578-3833 Beaverton, OR 97006 ********************************** _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Possibly Parallel Threads
- [PATCH RESEND] enable swiotlb on i386 in linux-2.6-xen tree
- [PATCH] fix udevinfo version string parsing
- Re: [Xen-changelog] Export Xen driver util function symbols so that Xen drivers
- [PATCH] xen: arm: make zImage the default target which we install
- [PATCH 0/1] vhost: parallel virtqueue handling