This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Home Products Support Community News


[Xen-devel] mkelf32 for 64-bit machines from powerpc

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] mkelf32 for 64-bit machines from powerpc
From: "Patrick G. Bridges" <bridges@xxxxxxxxxx>
Date: Thu, 30 Jun 2005 14:10:02 -0600
Delivery-date: Thu, 30 Jun 2005 20:09:05 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
While attempting to get xen to crosscompile for the opteron from a powerpc machine, I discovered a small bug in mkelf32. mkelf32 assumes that u64 is an unsigned long on powerpc machines, causing it to fail when crosscompiling opteron binaries.

Simple fix: on line 37, change
#if defined(__i386__)
#if defined(__i386__) || defined(__ppc__)

A better long-term fix that uses things like uint64_t might be preferable, but this was sufficient to get things to compile and xen to build. I haven't tried to boot xen on qemu yet; that's the next step once I fix some minor problems causing chk build to fail on curl and zlib.

-Patrick Bridges

Attachment: PGP.sig
Description: This is a digitally signed message part

Xen-devel mailing list
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] mkelf32 for 64-bit machines from powerpc, Patrick G. Bridges <=