From patchwork Wed Mar 9 12:28:44 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 12775019 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 BBC68C433F5 for ; Wed, 9 Mar 2022 12:30:47 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.287792.487990 (Exim 4.92) (envelope-from ) id 1nRvSe-00039z-4n; Wed, 09 Mar 2022 12:30:36 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 287792.487990; Wed, 09 Mar 2022 12:30:36 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1nRvSe-00039s-1r; Wed, 09 Mar 2022 12:30:36 +0000 Received: by outflank-mailman (input) for mailman id 287792; Wed, 09 Mar 2022 12:30:35 +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 1nRvSd-00039g-7Z for xen-devel@lists.xenproject.org; Wed, 09 Mar 2022 12:30:35 +0000 Received: from esa2.hc3370-68.iphmx.com (esa2.hc3370-68.iphmx.com [216.71.145.153]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id b5f59ecf-9fa4-11ec-8eba-a37418f5ba1a; Wed, 09 Mar 2022 13:30:33 +0100 (CET) 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: b5f59ecf-9fa4-11ec-8eba-a37418f5ba1a DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1646829033; h=from:to:cc:subject:date:message-id: content-transfer-encoding:mime-version; bh=jn996H0UodBbzF0NdWN/tz8IvosBKCSnpUrq0gK8r6U=; b=JC0ZdQwzSRG29m/xNPmO/j9+uFrEHIy5PuFu5dtvAcB0UMjdMY6sQkw9 flq64A6JMgUYmDERaHjOF+QoepCE2WH9TCEEkJ+0Mb86AznrZ367EgH4G C1flRCgxcMbLjltd6UvzwgaJwArLC63hm7PS35Ru75oiNYT6K1TGr0v5f 8=; Authentication-Results: esa2.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com X-SBRS: 5.1 X-MesageID: 65815390 X-Ironport-Server: esa2.hc3370-68.iphmx.com X-Remote-IP: 162.221.156.83 X-Policy: $RELAYED IronPort-Data: A9a23:N6ARpaxp+ECnHgqGVIt6t+fDxirEfRIJ4+MujC+fZmUNrF6WrkVVm jdOUGyAOfyINmX0Ld8kb4iwpkMPv5TTnYJnHVRprCAxQypGp/SeCIXCJC8cHc8zwu4v7q5Dx 59DAjUVBJlsFhcwnj/0bv656yMUOZigHtIQMsadUsxKbVIiGX9JZS5LwbZj2NYz2YnhWWthh PupyyHhEA79s9JLGjp8B5Kr8HuDa9yr5Vv0FnRnDRx6lAe2e0s9VfrzFonoR5fMeaFGH/bSe gr25OrRElU1XfsaIojNfr7TKiXmS1NJVOSEoiI+t6OK2nCuqsGuu0qS2TV1hUp/0l20c95NJ NplvNvsYxkkI6f2u7osU0l3MyV3DL9H0eqSSZS/mZT7I0zudnLtx7NlDV0sPJ1e8eFyaY1M3 aVGcnZXNEnF3r/ohuLgIgVvrp1LwM3DJoQQt2sm1TjEJf0nXYrCU+PB4towMDIY2J0eRKuFN pJxhTxHNkqfZkQeG3IsKsgaveyTolSgYwZgkQfAz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ooGuqeuyxBPw33Laq75WhNzi4N1eA9HksLldFhzcziKTIKhxUbyLuz445Mmp9VYRid HJ5ywtOsxigkmhC12dkF/I4U3NwTwu43jtxRuzmn34u/H0Qzo8Fo5omZ9ZWgGx0TtsgPhMlI Zwm06JvZteCh3N2A7n4cLTah1snk2o5VI/jO8oiWBFW4d2Us4akWUmxjIbLH48JlO11Gh+e9 MeTf00pcwmOm9yVkqp8lWGm7eXLzQO9hTveDlxhiXa6UkUoJlD9Tpo+CUupAZ/yHsDceg12w 29CNURqFhvdL5jUUsvPpZ3fSOIYla9Mi4kdljiY2jaKA== X-IronPort-AV: E=Sophos;i="5.90,167,1643691600"; d="scan'208";a="65815390" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FwpMfh6Wk12Kt4AFcsFHc4oVysprAVnUovEdd6BcPAlr0QQj9xiCkLaPnbmP2g+QqSS9f6erAgaxghIGjiIoDP+9o4k77PjAVYFm3MqwPbNEW0DQ34I5WsWPWmZNvIUYKyc9RUxuHXMc86Mt/kvyIxDz31EGE8xNNe/VDkz3zfNUE5fvTaRKBuXzhEb8pdrQT2KUhN2eXCHPUTDQSHKndwMH1lB6CtKgNE4Asa/Ajqx2pHb3PyNgNP5JiSrlmRUTrMiGSl25HwhgXQvfs5+RZ9JY44mP/CxGGtIobfgKsFoRoVRCPtsBRBA/zEEboqMzSXobEL6Ji7rpZxkBQz3yTw== 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=SP8l3Y6EvHr8ZL+9KA8yAnkl33yvaCRA0iYuYR7ZPcg=; b=iVFJfL0Wul5Vt1pbEZaQq3OoScyPq44BUo6ozFyyRm04dVO0LmG6m4RNLRf/ORcMJGW4kPxaZNO+3E/4qifCNh21NX18CvSODQ9ZOdUnWNUF1JIvFLHkfNUgMzSdMynbFJk98heAjg3uaOoi10yMpOSUKQcuNAgYDlprMsbCJYugzEh1qP3R0/fc7/Hgb17uOUYDENgI8fQzFM9LhpnBAkDLYmPng8m+AMp4nnRXM0HMO6iCM7VXm0ZSDxmmA318pfUnA2d26Ab5x/xoZUFrFIyQhxI5GRIiHKvuXCKlMAqAvrVvs3akQnHpxRNHivbswOOE5a8xrynVMM5hOakLNQ== 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 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SP8l3Y6EvHr8ZL+9KA8yAnkl33yvaCRA0iYuYR7ZPcg=; b=DwmMxX1iziTDdk2l9ZuTKx1aL2B7EuzkL3hW07tR3QXB+xw79F35eZYCYCLL2wQOM0LI866dUZu8UOTr94sMgAxM1ThFWhFur3Zeyiyl20iWZGkhcUS0r8bKBFQoxtJcnXvgferBvUD6ujGR6vc3hnlXuS3sKHKu8426WTuBDOk= From: Roger Pau Monne To: CC: Roger Pau Monne , Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk , Jan Beulich , Andrew Cooper , Wei Liu , George Dunlap Subject: [PATCH v4 0/2] livepatch: enable -f{function,data}-sections compiler option Date: Wed, 9 Mar 2022 13:28:44 +0100 Message-ID: <20220309122846.89696-1-roger.pau@citrix.com> X-Mailer: git-send-email 2.34.1 X-ClientProxiedBy: LO2P265CA0456.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:e::36) To DS7PR03MB5608.namprd03.prod.outlook.com (2603:10b6:5:2c9::18) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f38f626f-ea10-4653-4ae9-08da01c89467 X-MS-TrafficTypeDiagnostic: DM6PR03MB3596:EE_ X-Microsoft-Antispam-PRVS: X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fz8s8Qu2VZb4xXWfAUox+LI5EWzujtWqBqd2mTp6nPeXpvPW2RpZDeihyva8IPsMr3Ca/zZ2ZBwazOrblOySI6nU64laZjWlbJMR+5qATse7zAwGwytscgljk3bvG83eE5DzTzOndWXRtm8LZFKlP4oZK9TDZnAcXS4OLe82NvZ8y5Jx1PHBgPkIbkWzupXgA+GRUYKUoJHmoqew3lwCGHPmYTq37QECyzE7Kv0SnSTdaXzhECCI2wJoInoPmJd0hXME4MH/Oag+CTWjKylHYFtH70DP1bbXpaFhbBoF7cYNttbwT/JMNcrx7Rouz2UcZxurgVfP5Z0yVvP3dL2qMaGqDfqHSkx+kzV8Lds1LPKAiRsKN6mEdn52oZRTPGB/5cRsmxipmg/doNKVCfJIEtshEBJSo0mO1gqwNrakZtcoqOog0/x1HKnalb0NKJL+EnyWNmIYvN8qtsbZYpXnLvr+1R3zNpUOs/LvoWHWcgwCNKLm8jrlXeWgj977a/DLQiCsEGtcb6bqxOkv72vEvt1nB4rFYZlkqxHtzTv+cgmE/+fBDZxi/4uYuRYwEHVTZ0sx/Yu+4uR4/CCot+UcNnxVsCcWHHCEuDayEPPUUTfkj8En21SzY0T4fRGjQWXoZ7NRGX73J24hgFu+jjA7cQ== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DS7PR03MB5608.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230001)(4636009)(366004)(4744005)(6506007)(83380400001)(6666004)(66946007)(6512007)(6486002)(26005)(38100700002)(2616005)(1076003)(5660300002)(2906002)(8936002)(508600001)(66556008)(66476007)(8676002)(316002)(107886003)(82960400001)(54906003)(36756003)(4326008)(6916009)(86362001)(186003);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?Slg44PPvWWWGuT4WVqBhlT64YomK?= =?utf-8?q?Uwrf0qYjJdb3X02UkyaT/tyS8mzUZqjPfrc8MYjVcu+Fo1OOSmZbSs3EaUqDLlONt?= =?utf-8?q?nMPPeeqgBPZF8laQzjyg1whgwIZ9RiCteDIrFvsxUjDNm0sc35ku9q8TuXc508cRW?= =?utf-8?q?NhaktKOVjPS4NCL2VuEkMRvJDdIhrCl/dNqIo2ovf3ro7fHp7Uz6psIKRnOo884Z5?= =?utf-8?q?q+PyPFULkiELLaAa5SRcV0yJdYqPZLfgjlCObyUUa8c1aUxKFE2/kNWKaYetObho2?= =?utf-8?q?x2Lm70rUDLaAz2nljrdVyklkEnL8p1vMJlL7WgaODgJ0pfwbqEbo+Vm8UNwQ1RaQQ?= =?utf-8?q?xLpmEA1bjDe8Yim6RyotzEj0tka9cmQHWR3RP/lI+h15/A+3/4I+nvsgimYUykRox?= =?utf-8?q?IEimnWfwQFfkXjFPfrnRAOhEfQqCDrHH7DJPwgKJ7PX14jj2jR/nFSWSdUkYwz7UI?= =?utf-8?q?UCTArwNWWYDVV2/sDGg9Pq0nKVOi9XfeWLQeUkUJer/MbIkJ6VgjLbY1H7ss4zzK6?= =?utf-8?q?cj5NZK/r/uyap0JXW50QlRRzUwRlRAbzT0IqZKCWa4qwhIcYodShkt/+wEP3Hpvj8?= =?utf-8?q?ot48aymkzTYSxDsaK1z+LUnClfj9B7cQ+ySbyMlFyjx7YmmF5oGI3w/BkKHwbm5gU?= =?utf-8?q?I3JpxM8HAeV8aKKs3e2V/vgpf8MBtTSQti5ASEJBDZ7Hhnn+Nx5yq+CLr7j1P7MN7?= =?utf-8?q?JA+10H2U6KrpBj2FidHdpLXp3auAPD/VemD04CLp38+yDHtnmTWREJ3bz8TtMoM7c?= =?utf-8?q?S9EFI32lOS5zeysIkB8hSmEA2ZvURUWUJ0w0sR9r2MIqYNIstvl3ZEI78CO7chvWf?= =?utf-8?q?chWkcnxYTlYL3rHZTSPY7AWFIYKVaM4xALXvsnF5u1cJZbEWljPMwidj4VR5B6O0v?= =?utf-8?q?1JuMLV9NbsUpqRRP+C0K3ANWnTrZEbXNIvoI+51yOfNyEtNKrdHpyiVwr4oGYZI6g?= =?utf-8?q?JUrFgpajsteGAOxauhG/1cV9QsPQyPL01La0OX4O3gVsU+/eQH61Rtw54iw6hemy2?= =?utf-8?q?2V7uWSzGbr/KvJCEtAARYFZvaHDcs1J8bI44LgTQ9dYEnHLhSsJqzsYmv08c0q08D?= =?utf-8?q?aUuBN7bVxsWXe8AgNlyw3E0r4jxhOq7TD2GsRUcXuCQBEdroDNcsnsMvbAK9JSwQb?= =?utf-8?q?DpTKnVRsS3YVnpYKdoDeXtXS2p4cXUznHS5pBnmQWhsE11ys9ohK0Cn1k60DloTD5?= =?utf-8?q?QT/rGcNQE9of5DkkJdSbqvEmxEZnM4TKYpnDD0Nh0N0or0RSCU0JPGURD+mBOmWca?= =?utf-8?q?nCERkq2WE8ECFQ/suIXxIIGCsGAyGU0hsanpR9avJl4VYTX4TD72ppMH9W7JH+LLM?= =?utf-8?q?IqspUpejFqTuVvziE3RxtZxeGtndL8Un7akm4d7kZpGvZIsqImYKPzqntJZCJKwrx?= =?utf-8?q?D8ItHEBK0l6RHOvqo/PYcCmQ8M1djEACC3Do2VrjH3hs9HS3ZaHJ8NOQATIBNGyWD?= =?utf-8?q?iDmpm8XyPyRRWZo7X/obEESUtfws8LDyoK1HEFWMkuO7wXi2vF/amqQlguDwD9Vfg?= =?utf-8?q?HEMRtpU0hp5sUz+BXJwEDKkrFj2FFQw4RZVHUzWQ3LkS7/CGBwnGx20=3D?= X-MS-Exchange-CrossTenant-Network-Message-Id: f38f626f-ea10-4653-4ae9-08da01c89467 X-MS-Exchange-CrossTenant-AuthSource: DS7PR03MB5608.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Mar 2022 12:30:22.4042 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: FkUoptdasW9scB479aCqNT0woXEA8Ni+S6qhs+FZVYSrEBDPNs4VzG3V7EGpYJ3Hw8aKd753BlDM0iaewDF2pQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR03MB3596 X-OriginatorOrg: citrix.com Hello, The content in v3 has been split in two patches, but is still mostly the same. The main difference is that first patch does a bit of cleanup of the build logic now that the header object file doesn't need to be the first one passed to the linker script. Thanks, Roger. Roger Pau Monne (2): xen/build: put image header into a separate section livepatch: set -f{function,data}-sections compiler option xen/Kconfig | 4 +++ xen/Makefile | 2 ++ xen/arch/arm/arch.mk | 2 -- xen/arch/arm/arm32/Makefile | 3 +-- xen/arch/arm/arm32/head.S | 1 + xen/arch/arm/arm64/Makefile | 3 +-- xen/arch/arm/arm64/head.S | 1 + xen/arch/arm/xen.lds.S | 49 ++++++++++++++++++++----------------- xen/arch/x86/Makefile | 5 ++-- xen/arch/x86/arch.mk | 2 -- xen/arch/x86/boot/head.S | 2 +- xen/arch/x86/xen.lds.S | 20 +++++++++------ xen/common/Kconfig | 1 + 13 files changed, 53 insertions(+), 42 deletions(-)