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

Re: [PATCH] Arm: drop ENFORCE_UNIQUE_SYMBOLS=y workaround again


  • To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: "Orzel, Michal" <michal.orzel@xxxxxxx>
  • Date: Tue, 22 Sep 2026 12:52:38 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=suse.com smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0)
  • 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=wVEbYL0ZEJKb1i/fBd0sHpOSlMSuoxl5jsUjcZAjuoQ=; b=o4f2tKIKt7EMkQIrEX9NIl4r8KvguLAo0vmVzPQMRqJnMe8UnaV1kbbwiK3V7wX34MHQui5zkQPwVVge/SqT6bsGLYRL0u8flIjv7fTUPEG4lm7ZaL79S4oauFdGwE9p1EKbF4bqbjfFXqu3vUEdhrZqm5upAK2QRrdovV/jIfaDoBOU9HHdfOMN+/sQuUt6opg+XOUzl6W3lPkxsCWdz1E0otELY0ZScizefqJ8o2eSSTjMVQJTxCwxRws6LwC6fuUSdyFOFfOo1HuboZfwY0EJTebrZXrRaSxaI/bYNWc2y2vSx5yz8GmrCW/EgS5qFERTFg1gQuV7g82BXBq6ag==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=lORNliHhEIQHm8WgUsefxI0I894/81HMUnpr1oQEiBdSb4a51vJaD4eEEdI3xKcsXW4XHljdW3dyDN36bVlHc87cviiH3/RY/lK3zgVpO4zi8NV/i9dM/j3L9V2EPLsbO+1rc+fsNwoplZNsYUQVq0gU+V7dakuGtEetyvIeAuNsPBrS3RbDll9PgGKfAL6FBg1ASrEfIDQRSBM96PE7fAx2bVEj4CYVEDfmzh48DnMmNdLU4uMzjhTRq7UKULG0muyXK8rXCIicKpn7rM5Igmmcmcn12/mY+sp2pmJt9OKSffyfBL1ieHzXc8UycXnAf/dkR8SsJTUnhe5n5hsqPA==
  • Authentication-results: eu.smtp.expurgate.cloud; dkim=pass header.s=selector1 header.d=amd.com header.i="@amd.com" header.h="From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck"
  • Cc: Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Volodymyr Babchuk <volodymyr_babchuk@xxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>
  • Delivery-date: Tue, 22 Sep 2026 10:52:55 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 22-Sep-26 12:41, Jan Beulich wrote:
> Both arm<NN>/head.S and arm<NN>/mmu/head.S have a local symbol "fail".
> Without a .file directive locals will be associated with the path-less
> object filename (head.o). Hence the two symbol names collide. Add .file,
> also in arm<NN>/mpu/head.S for consistency.
> 
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> ---
> Likely other .S files should also gain .file, but for now that's largely
> cosmetic and hence is left out.
> 
> --- a/xen/arch/arm/Makefile
> +++ b/xen/arch/arm/Makefile
> @@ -91,9 +91,6 @@ include scripts/Makefile.link
>  # Suppress orphan section checking for the time being.
>  orphan-handling-y :=
>  
> -# Downgrade duplicate symbol errors to warnings for the time being.
> -syms-warn-dup-$(CONFIG_ENFORCE_UNIQUE_SYMBOLS) := --warn-dup
> -
>  .PHONY: include
>  include:
>  
> --- a/xen/arch/arm/arm32/head.S
> +++ b/xen/arch/arm/arm32/head.S
> @@ -17,6 +17,8 @@
>   * GNU General Public License for more details.
>   */
>  
> +        .file __FILE__
> +
>  #include <asm/page.h>
>  #include <asm/early_printk.h>
>  
> --- a/xen/arch/arm/arm32/mmu/head.S
> +++ b/xen/arch/arm/arm32/mmu/head.S
> @@ -5,6 +5,8 @@
>   * Arm32 MMU specific start-of-day code.
>   */
>  
> +        .file __FILE__
> +
>  #include <asm/page.h>
>  #include <asm/early_printk.h>
>  
> --- a/xen/arch/arm/arm32/mpu/head.S
> +++ b/xen/arch/arm/arm32/mpu/head.S
> @@ -3,6 +3,8 @@
>   * Start-of-day code for an Armv8-R-AArch32 MPU system.
>   */
>  
> +        .file __FILE__
The MPU files are indented with 4 spaces, so please use 4 spaces here and ...

> +
>  #include <asm/arm32/macros.h>
>  #include <asm/arm32/sysregs.h>
>  #include <asm/cpregs.h>
> --- a/xen/arch/arm/arm64/head.S
> +++ b/xen/arch/arm/arm64/head.S
> @@ -20,6 +20,8 @@
>   * GNU General Public License for more details.
>   */
>  
> +        .file __FILE__
> +
>  #include <asm/page.h>
>  #include <asm/early_printk.h>
>  
> --- a/xen/arch/arm/arm64/mmu/head.S
> +++ b/xen/arch/arm/arm64/mmu/head.S
> @@ -5,6 +5,8 @@
>   * Arm64 MMU specific start-of-day code.
>   */
>  
> +        .file __FILE__
> +
>  #include <asm/page.h>
>  #include <asm/early_printk.h>
>  
> --- a/xen/arch/arm/arm64/mpu/head.S
> +++ b/xen/arch/arm/arm64/mpu/head.S
> @@ -3,6 +3,8 @@
>   * Start-of-day code for an Armv8-R MPU system.
>   */
>  
> +        .file __FILE__
... and here.

Other than that:
Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>

~Michal




 


Rackspace

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