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

Re: [PATCH v2 0/5] darwin: expand cross-builds to also support x86 and testing


  • To: Jan Beulich <jbeulich@xxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Fri, 13 Feb 2026 10:20:57 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=iJYbYyKldCsd05Z1aVUDZ0Q4DFlyKL6R/ype5LiatdM=; b=XL43yFMzUmfuNl83Y30EGXot8PX3CXp70Ph2IJFQjbMwkCC56bMcu4VrcfSSpLugq68vXouSR0aQNnKk09QRske+e4YDwLO75UGga/fCUzPmZXR0oJZgGghy+8AO0TL8EGXs44rYxNDREfs8g6I/Pw9gWWDJljLLt5QqaPf4tOZV8BsDL+TEUE5nIK+cUJuqKug2WsyAw8TKcPYY6HdC9vQGYckIjMuzlYblLLygnMyI3XjCMGy7DcjyuGDyugLObiM8Y7QnNZ6qQvZ9WouGbsGw/Llq/EL6fR4LD3zebdHLoebMylkQCvGjvFZUEt3kNYxAdHf+yuRfgZcbyUiw7A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=zOLE41X8UKbUT1DP3y0KXD10N36nnwCpo7YIS5F0sMAj6g8SUBBfUOR+vPOEz+fme2cWYWuhbuPo1ib+ShVb8w7m/VhHj1HRbezL+a2lN3+pQMbVMYBGfkKorVh3iKrZ61hLDohetTJl2H1DKwgaAWQSqUrZwS9ijrF4lJYUCyF4o3O7W0tV0MF/1HyRX1uOGpU9ZnRaR4XZwxN5i3tcZSrFO1OOlVNqaxSJbR3m4Qqd7gUgATqsmIYcMLyMAuLG9N3YBF10v5iKbMXI4zbALMG8cx0Rz6Z0qdXsY4m2Ghk27Cumwapzja8uWUFNpKWDda8ZN8E1lGB1jUhGvVVPOQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
  • Cc: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Anthony PERARD <anthony.perard@xxxxxxxxxx>, Michal Orzel <michal.orzel@xxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 13 Feb 2026 09:21:17 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Fri, Feb 13, 2026 at 09:22:24AM +0100, Jan Beulich wrote:
> On 12.02.2026 18:58, Andrew Cooper wrote:
> > Also, during the final link steps for xen.efi, we twice get:
> > 
> > [10:09:57.995] Warning: relocation to r/o section .text:00000048
> > [10:09:57.995] Warning: relocation to r/o section .text:00000090
> > 
> > which smells like the multiboot header.
> 
> It is. These diagnostics are seen only when older ld is in use, but the
> issue exists in all cases.

Oh, it took me a while to figure that out.  Newer ld generates the
relocations itself, and hence we no longer use mkreloc that would
print those warnings.  However ld generated relocations will still be
against read-execute section, and hence as you say the issue also
exists there.

However the ld version on Darwin is:

GNU ld (GNU Binutils) 2.45.1

So the issue is not with the version of ld using in the Darwin build
being too old, but rather the checking done in efi-nr-fixups not
working well with BSD grep.  It needs to be adjusted to use -E,
otherwise [[:blank:]] is not recognized.  I will send a patch.

> It should really already be on someone's todo
> list wrt fully secure boot conformant xen.efi, as we did discuss this in
> the past.

I did start on it:

https://lore.kernel.org/xen-devel/20250401130840.72119-1-roger.pau@xxxxxxxxxx/

However at the time I did this, the XenServer Secure Boot
implementation was doing something that would have been incompatible
with this work, and hence I set it on the side.  Later on, the
XenServer implementation changed and picked up most of this work
internally.  I however never got back to this work, neither the people
that internally worked on Secure Boot send an updated version of the
patches.

I will see whether I can make some progress on this.

Thanks, Roger.



 


Rackspace

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