[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] ppc: make also linking work with big-endian tool chain


  • To: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 5 Jul 2023 16:44:57 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ko37wEC+VNTFnAWzbH9mATLPo7l3CEHB83K3DoPeiFQ=; b=MSHTicFmqe8N2foVuMDm30CAms3zIGHRo1ZihgkuNzFzwQRmuULG39TODEv+/QxUqE8sZnGfJEWFBJ5SbayWCYoqwklMCjZO16nnav6os9RMO32KhXfGZaGOeBQx991KsxqGM9TN6VcyuVcBrsx1bRIrYSLdAFIOgiB3hcFu4vlN1EObc1VU5eys8wQkYgdv+C/OdPcoPSfrpXpJOWndJ5eo+4X86d7cawOuoDRbfVFz9zvatxRiHZSqOJG60k/bopiB/5N6Jpex4LTR+3ApRfAh80Kysp/wIQBbn/SqvDG64McOOnaxTQhiaLlodY4FCsFNK/PuFrD4sAURZt9Xxw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=mglIsDgYji/n0RIRgu1L0gEW+VVH2FhDxgsKfCC5bcWQW1tvwFldtTlxBYyMxRuD2kaclPNqUSO9W7Qzl+GPPCny60YKKrPkaia80YVh5Ak0wJiaJUGtMBWRYsCtYSifV9+zrc6GPtAFxQvOX7L7/VlJ9i1l1t1ZrljqXKDSTecZMWBZFCnFyxxZ7WZFp4qQMjlrcMrV87e8F4hX21jCZL+Lf6JNYOk+kR7bCYHlt7hb0rimig3KFHErJXexWQs8NKFzkR1P3+NG2mA6NTo2weMQ36fdI6spfYLDw7lB53yrPHfDPTzCE504sBmMlX4ZJy4cmGFOnSjEj9Kw6mud/g==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 05 Jul 2023 14:45:15 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Telling just the compiler to produce little-endian objects isn't enough.

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>

--- a/xen/arch/ppc/arch.mk
+++ b/xen/arch/ppc/arch.mk
@@ -7,6 +7,8 @@ ppc-march-$(CONFIG_POWER_ISA_3_00) := po
 CFLAGS += -m64 -mlittle-endian -mcpu=$(ppc-march-y)
 CFLAGS += -mstrict-align -mcmodel=large -mabi=elfv2 -mno-altivec -mno-vsx
 
+LDFLAGS += -m elf64lppc
+
 # TODO: Drop override when more of the build is working
 override ALL_OBJS-y = arch/$(SRCARCH)/built_in.o
 override ALL_LIBS-y =



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.