WARNING - OLD ARCHIVES

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/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

[XenPPC] PHDR link failure testcase

To: xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
Subject: [XenPPC] PHDR link failure testcase
From: Amos Waterland <apw@xxxxxxxxxx>
Date: Mon, 14 Aug 2006 19:17:37 -0400
Cc: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Delivery-date: Mon, 14 Aug 2006 16:17:48 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.12-2006-07-14
Using a `powerpc64-linux-gcc (GCC) 4.1.1 ()' x86->ppc toolchain, if I do this:

diff -r 9563f5c9ab19 xen/include/asm-powerpc/config.h
--- a/xen/include/asm-powerpc/config.h  Mon Aug 14 15:22:22 2006 -0500
+++ b/xen/include/asm-powerpc/config.h  Mon Aug 14 19:13:07 2006 -0400
@@ -51,7 +51,7 @@ extern char __bss_start[];
 #define CONFIG_GDB 1
 #define CONFIG_SMP 1
 #define CONFIG_PCI 1
-#define NR_CPUS 1
+#define NR_CPUS 16
 
 #ifndef ELFSIZE
 #define ELFSIZE 64

I get this:

make CROSS_COMPILE=powerpc64-linux- XEN_TARGET_ARCH=powerpc64 optimize=0 
CMDLINE="console=com2"

powerpc64-linux-gcc -m64 -ffreestanding -fno-builtin -fno-common 
-fno-strict-aliasing -iwithprefix include -Wall -Werror -pipe 
-I/home/apw/devel/xen/xen.hg/xen/include 
-I/home/apw/devel/xen/xen.hg/xen/include/asm-powerpc/mach-generic 
-I/home/apw/devel/xen/xen.hg/xen/include/asm-powerpc/mach-default 
-Wpointer-arith -Wredundant-decls -Wpacked -msoft-float -O2 -g -D__XEN__ 
-Wundef -Wmissing-prototypes -Wmissing-declarations -N -nodefaultlibs 
-nostartfiles -Wl,-Ttext,0x400100,-T,xen.lds start.o 
/home/apw/devel/xen/xen.hg/xen/common/built_in.o 
/home/apw/devel/xen/xen.hg/xen/drivers/built_in.o 
/home/apw/devel/xen/xen.hg/xen/arch/powerpc/built_in.o -o 
/home/apw/devel/xen/xen.hg/xen/xen-syms

/usr/powerpc64/lib/gcc/powerpc64-linux/4.1.1/../../../../powerpc64-linux/bin/ld:
 /home/apw/devel/xen/xen.hg/xen/xen-syms: Not enough room for program headers 
(allocated 2, need 3)

/usr/powerpc64/lib/gcc/powerpc64-linux/4.1.1/../../../../powerpc64-linux/bin/ld:
 final link failed: Bad value
collect2: ld returned 1 exit status


_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel