From patchwork Thu Mar 31 07:14:23 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Orzel X-Patchwork-Id: 12796806 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 115CAC433F5 for ; Thu, 31 Mar 2022 07:15:04 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.296706.505122 (Exim 4.92) (envelope-from ) id 1nZp14-0001nW-VV; Thu, 31 Mar 2022 07:14:46 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 296706.505122; Thu, 31 Mar 2022 07:14:46 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nZp14-0001nP-SK; Thu, 31 Mar 2022 07:14:46 +0000 Received: by outflank-mailman (input) for mailman id 296706; Thu, 31 Mar 2022 07:14:45 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nZp12-0001n6-Uo for xen-devel@lists.xenproject.org; Thu, 31 Mar 2022 07:14:44 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-sth1.inumbo.com (Halon) with ESMTP id 3ce4d396-b0c2-11ec-a405-831a346695d4; Thu, 31 Mar 2022 09:14:43 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DFA6123A; Thu, 31 Mar 2022 00:14:42 -0700 (PDT) Received: from e129167.arm.com (unknown [10.57.7.5]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 7C1913F66F; Thu, 31 Mar 2022 00:14:40 -0700 (PDT) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 3ce4d396-b0c2-11ec-a405-831a346695d4 From: Michal Orzel To: xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk , Andrew Cooper , George Dunlap , Jan Beulich , Wei Liu , =?utf-8?q?Roger_Pau_Monn=C3=A9?= Subject: [PATCH v3 0/2] xen: Linker scripts synchronization Date: Thu, 31 Mar 2022 09:14:23 +0200 Message-Id: <20220331071425.49141-1-michal.orzel@arm.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 This patch series aims to do the first step towards linker scripts synchronization. Linker scripts for arm and x86 share a lot of common sections and in order to make the process of changing/improving/syncing them, these sections shall be defined in just one place. The first patch creates an empty header file xen.lds.h to store the constructs mutual to both x86 and arm linker scripts. It also includes this header in the scripts. The second patch populates xen.lds.h with the first portion of common macros and replaces the original contructs with these helpers. Michal Orzel (2): xen: Introduce a header to store common linker scripts content xen: Populate xen.lds.h and make use of its macros xen/arch/arm/xen.lds.S | 45 +++---------- xen/arch/x86/xen.lds.S | 97 +++------------------------ xen/include/xen/xen.lds.h | 137 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 157 insertions(+), 122 deletions(-) create mode 100644 xen/include/xen/xen.lds.h