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

Re: [PATCH v3 2/4] xen: Add files needed for minimal ppc64le build


  • To: Shawn Anastasio <shawn@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Wed, 5 Jul 2023 08:44:36 +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=aLiCr+DxF+lItaSvxrFpQBIF77sFEtJ67bAB1dGMkUs=; b=OZ8nO03Z5BqRTwqdoi+AcEQpIyEwlvWs0RVrest73uuIdIZPRNOxt03ep7zU3bq6cdY28TSWSHmwUXG+djzM3qL6TMNhSr5pFPUb1ljEeIHqWt6s8rX3945cf3/XzKvTVTgB4/6P6OOroGTSjWlJmcuucF9F5SqggF/Pxn5azIz6HMANqlDxs4P46ss9fELFW3jgOvjo9Wyq5M14hwihFTZJ4w7OVAmsznAQ0CaARj2FFKf5kdV32TSH1+bUF1QpooW/FATEpuV9/LVFDtjhuQzRdxGbNrEqY+6q//EKAnYrJ4iwlTBue1d/zwWrRhkOvUeodCOiCtjRGQH4i3M9GA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XaAqXhh5BS+ZpvigB0MxceicwQJUuC79/l8rvqRY1fvjJDuVtpzatFRX39kZ51RRpLUla+69cbW9vbZBtpt7uw7SFDT9YG+pfeR+xnFccQ+sVaXa3OYdJSfJZzDWCuM91CSyckBjz9DQGBbbzB5qFIOaRelaeXw1/LJPY1cbnB6SiWShB4aXFWsWpOlQ7GSqCZrfqPSQUJHu4TINjXhKnevmW9tMfNjxzLmRtaKKGzSUnBsQdH82l6y9wBqOPJEfz2iJYXdcExPCI6jpBjj4FFVTx52+i/bjsQ7C+omJtWX0tGBEtF5rs1WRBR2bKkbQtanrzgU9keIGtPyjFL1DfA==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: tpearson@xxxxxxxxxxxxxxxxxxxxx, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Shawn Anastasio <sanastasio@xxxxxxxxxxxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 05 Jul 2023 06:45:00 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 14.06.2023 18:36, Shawn Anastasio wrote:
> On Wed Jun 14, 2023 at 10:51 AM CDT, Jan Beulich wrote:
>> On 13.06.2023 16:50, Shawn Anastasio wrote:
>>> --- /dev/null
>>> +++ b/xen/arch/ppc/arch.mk
>>> @@ -0,0 +1,11 @@
>>> +########################################
>>> +# Power-specific definitions
>>> +
>>> +ppc-march-$(CONFIG_POWER_ISA_2_07B) := power8
>>> +ppc-march-$(CONFIG_POWER_ISA_3_00) := power9
>>> +
>>> +CFLAGS += -mcpu=$(ppc-march-y) -mstrict-align -mcmodel=large -mabi=elfv2 
>>> -mno-altivec -mno-vsx
>>
>> Wouldn't it make sense to also pass -mlittle here, such that a tool
>> chain defaulting to big-endian can still be used?
> 
> Good call. On this topic, I suppose I'll also add -m64 to allow 32-bit
> toolchains to be used as well.

Turns out this isn't quite enough. When trying to test my little bit of
re-basing of Anthony's series, I ran into ld complaining about little
endian input when the target format is big endian (like for the compiler
I'm using a default configured, i.e. big-endian, binutils build). Looks
like we need to pass "-m elf64lppc" to the linker; I'll see if that
helps (and where exactly to put it).

Jan



 


Rackspace

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