From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR03-AM5-obe.outbound.protection.outlook.com (EUR03-AM5-obe.outbound.protection.outlook.com [40.107.3.48]) by mx.groups.io with SMTP id smtpd.web12.9351.1659537384838805441 for ; Wed, 03 Aug 2022 07:36:25 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=HI0nV3o/; spf=pass (domain: arm.com, ip: 40.107.3.48, mailfrom: sami.mujawar@arm.com) ARC-Seal: i=2; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=pass; b=H9ufv5LkzU6D5oMVr1kUENbKWd/PGOQJXIHmzcvUnWothdeIL+WXSt/NOkKFU5VDzVr05uKuk6fNGYcrOccmhHp7eKmdQhFP7YnNBHtEH1nbpEm16jM/ws+BJKpa6ZAHkaUDYYN0aoE42Byl1YCQvVKEqxjtKHolMZho/kgqze8RdR+AsKm35qqaGVi7nwZuY7haTP8SzyafKN63dQ+4BMXWWfo0K1paR4sfMKfC5y/QjTpXvxWGD2MX6nv4CwgKgajKrP7UBELWnj34FdnlBYfO1JKDuTVPlJpG3X2Yuv9ztjdY3smnYeNKKb0S/lwdmRcfnrxiMjiBeW786P89NA== ARC-Message-Signature: i=2; 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=i+5aqNGBHRb8zh/VNDG11UZwdmSj1YmjV6esv4h4/hA=; b=nvCe22d41CQWanDojmxDJ7OeimFC3HchbDujLKwQj59qgZUZ7YpF9Q/vCMLZi0lZfwKe8XTPklQw3yScxIvQHAKnxe2RiT6xWmYrtMwW4aMjARK9e5ONX1QchuVT4bDN/qKmu8wo0MTfMUyBwKmhSRZxfRfMxkCtL+2Y6cX7+Gt369azna3s2LIBayXLvEgHPZFoFssiQluPtI5x23Za1fWKFzczEM6sXEpJaDXVKt/54FLENs2fyMLXra63NVr2rIb7a6MNQNLxg1OHC+hKt7Ay74kVxS8pNAKnSL0ebNOMkHTOBHNi/JizOSrjEskkA8yfQl0wSToandUKVrFXog== ARC-Authentication-Results: i=2; mx.microsoft.com 1; spf=pass (sender ip is 63.35.35.123) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com; arc=pass (0 oda=1 ltdi=1 spf=[1,1,smtp.mailfrom=arm.com] dmarc=[1,1,header.from=arm.com]) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i+5aqNGBHRb8zh/VNDG11UZwdmSj1YmjV6esv4h4/hA=; b=HI0nV3o/6Rw0iQXjUuvDcTludrFcu9VAMA19H/RVLiToajODcSW4xGWXTt8H7mHgHsgFpWBArpLWBmMFz/e7JIRyXbuo4Kxdj53gfqyg2FM0xSA3YTxJlYNM+NoZ1qR3SKM4ISg2HUoumpnG/+K578Lgx3Qm9uR+3Bkd8YcbYSc= Received: from AM6P192CA0089.EURP192.PROD.OUTLOOK.COM (2603:10a6:209:8d::30) by DU0PR08MB9051.eurprd08.prod.outlook.com (2603:10a6:10:470::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.11; Wed, 3 Aug 2022 14:36:17 +0000 Received: from VE1EUR03FT062.eop-EUR03.prod.protection.outlook.com (2603:10a6:209:8d:cafe::8) by AM6P192CA0089.outlook.office365.com (2603:10a6:209:8d::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14 via Frontend Transport; Wed, 3 Aug 2022 14:36:17 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; pr=C Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT062.mail.protection.outlook.com (10.152.18.252) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.12 via Frontend Transport; Wed, 3 Aug 2022 14:36:16 +0000 Received: ("Tessian outbound c883b5ba7b70:v123"); Wed, 03 Aug 2022 14:36:16 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: cb696dada289efa0 X-CR-MTA-TID: 64aa7808 Received: from 0eb46aa845a9.1 by 64aa7808-outbound-1.mta.getcheckrecipient.com id F6E16643-DB32-4B14-B8F4-ABD4A71597F4.1; Wed, 03 Aug 2022 14:36:09 +0000 Received: from EUR04-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 0eb46aa845a9.1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Wed, 03 Aug 2022 14:36:09 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=BUEbT+sidHGEW7ylp1IyIQ2VKl4dA6Bgj9oTwNMAVWD/zcxdIhQYknfPvq1VdUilpOpcWu6umRPX+Gan5R1FqcHjcJ29VEZkepZD8sszH82ZvoHulntTWjXFRBdBLyns7yS6ZhesrKnwRUSfOlf+shq9AuLHCNtfdQqHFsjztrRssXggwTJhWInefDyGEPWEtfDMOMu5XFsR+jKj9P79uBFK08jq0HG2WvyuE1SeIUCzQ6mPi50kPXJJfL815mrpGHxPv6pmBrfAFVJJ5R1qrzKeU6/57wJbgha6LzMcvhhEieSsdFiLJemM3nlE2OtzPZ7V2yR6bJVnRNqRo83DxA== 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=i+5aqNGBHRb8zh/VNDG11UZwdmSj1YmjV6esv4h4/hA=; b=P+J5XL7Ikkdig5D9TX3gAwmOT+P3vcrX/s+kxvv9mwxiNtPtqr1//A8WgXq87ki6+NhlR7yvK1FGo1SdGyfMipF1Tjl8dZqrxrZjsZrbsJNWqYCLP8qxd+qukoH57HnWC4nppRQi7RWpw9QuEX68qKkxGoU95kFs+atVx4X8lxBEzSgbOy85Nd1J+ZnFwsSFG/j2nNpGL7lozAAHV3XROzJyRwMUYp7lrmzf+2XIyNfdM9ZN/hKugRydQR4Cnj9auccbkRw4ap5dPjSuRd49W6+ibam19SFtc9nAz+CTm6l4qO8Em4wpgwRIR5B8n5ttob2DOyKSQpSsccjT4RZ4cA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 40.67.248.234) smtp.rcpttodomain=edk2.groups.io smtp.mailfrom=arm.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=arm.com; dkim=none (message not signed); arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=i+5aqNGBHRb8zh/VNDG11UZwdmSj1YmjV6esv4h4/hA=; b=HI0nV3o/6Rw0iQXjUuvDcTludrFcu9VAMA19H/RVLiToajODcSW4xGWXTt8H7mHgHsgFpWBArpLWBmMFz/e7JIRyXbuo4Kxdj53gfqyg2FM0xSA3YTxJlYNM+NoZ1qR3SKM4ISg2HUoumpnG/+K578Lgx3Qm9uR+3Bkd8YcbYSc= Received: from DBBPR09CA0041.eurprd09.prod.outlook.com (2603:10a6:10:d4::29) by AM9PR08MB6900.eurprd08.prod.outlook.com (2603:10a6:20b:302::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5504.14; Wed, 3 Aug 2022 14:36:05 +0000 Received: from DBAEUR03FT040.eop-EUR03.prod.protection.outlook.com (2603:10a6:10:d4:cafe::e5) by DBBPR09CA0041.outlook.office365.com (2603:10a6:10:d4::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5482.10 via Frontend Transport; Wed, 3 Aug 2022 14:36:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 40.67.248.234) smtp.mailfrom=arm.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 40.67.248.234 as permitted sender) receiver=protection.outlook.com; client-ip=40.67.248.234; helo=nebula.arm.com; pr=C Received: from nebula.arm.com (40.67.248.234) by DBAEUR03FT040.mail.protection.outlook.com (100.127.142.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.5482.12 via Frontend Transport; Wed, 3 Aug 2022 14:36:05 +0000 Received: from AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) by AZ-NEU-EX03.Arm.com (10.251.24.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256) id 15.1.2507.9; Wed, 3 Aug 2022 14:35:50 +0000 Received: from AZ-NEU-EX04.Arm.com (10.251.24.32) by AZ-NEU-EX01.Emea.Arm.com (10.251.26.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.9; Wed, 3 Aug 2022 14:35:49 +0000 Received: from E114225.Arm.com (10.1.196.36) by mail.arm.com (10.251.24.32) with Microsoft SMTP Server id 15.1.2507.9 via Frontend Transport; Wed, 3 Aug 2022 14:35:49 +0000 From: "Sami Mujawar" To: CC: Sami Mujawar , , , , , , , , , , , , Subject: [PATCH v1 1/5] Basetools/GenFw: Allow AARCH64 builds to use the --prm flag Date: Wed, 3 Aug 2022 15:35:43 +0100 Message-ID: <20220803143547.27772-2-sami.mujawar@arm.com> X-Mailer: git-send-email 2.16.2.windows.1 In-Reply-To: <20220803143547.27772-1-sami.mujawar@arm.com> References: <20220803143547.27772-1-sami.mujawar@arm.com> MIME-Version: 1.0 X-EOPAttributedMessage: 1 X-MS-Office365-Filtering-Correlation-Id: f1ec0433-20dd-4c24-e453-08da755d85fd X-MS-TrafficTypeDiagnostic: AM9PR08MB6900:EE_|VE1EUR03FT062:EE_|DU0PR08MB9051:EE_ x-checkrecipientrouted: true NoDisclaimer: true X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: c/Z6LIQVuNFJFrlIi7XNhTXuxNGP84U0uHFEnlo9pM1DLv8p2/cpGoU2W5er3LpBYp8bRc4W6ny4WMPZ4La9PN9SCiekA905QhNjPYJpPTT2xCZYrSeMf3y5KXFz68nRDW52h7g5VuEC3vPIOwHRy7YQmLmw3C+PF+1Z1H02XbFv7VrL87K2A6RVT+apUHDnMnIrqLTrEVRtko0H1ba9buEvCocC9uPNs+e6hDz4xqcinLoQdC7SdJLuDpop9bnZCrbSq4qC+V8CF/slgx7DYFonfRb5IHmwmGDmVQZlNQMNljDB6CVEVT242lHKncfcvQi/LIrQz2Lo+jJ0SuHBGuvTajsqfpqliLzZy1EnId4zyLVKVBjYuke+j3YdhdtgQSpISn0oNtgyw2ReFjvqSXvtTBQ+W3AxD/KLBasjy7Agya032UsjrGRYOzA7N/5ODn8KCKhf8My3qndZ5fgyfv/AMkTantBHN6D0uNI7gJHdnyOh78DR3dU+NFCoacHP7BwBVK7eSVBq+SiZdUwxvjc+CdQVX+TaZZZwoXBJN33FCX1kvMcIqc4dIp39GSZIBVkHZ5XkQEImMfedj60i9TOqTHFm6sC3l9jl2c9UO5h9OSLMevixD8JU9ei4GwOhrkAU4iNx4UItppQOqzGq2ufyEly9bQDcwxjumGVKLrIw9g2NLf2u0LYizjghWkdraNw0PBuWSr05NMpiYo2mvz1G7tCz8sq6FRwok3vMDEkNLB98kW0DZsb/9k+1RE73TZHBT1PnX/TscfHneb5B0uPRhXyD0a5CCwPxcf8eTZvFUIWm/Y9tqD7UN7nL2ZGR0SChwQ+UDmvvSnM+syrP0g== X-Forefront-Antispam-Report-Untrusted: CIP:40.67.248.234;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:nebula.arm.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230016)(4636009)(376002)(396003)(346002)(39860400002)(136003)(46966006)(40470700004)(36840700001)(83380400001)(26005)(44832011)(336012)(186003)(8676002)(426003)(70206006)(70586007)(4326008)(6666004)(2906002)(82740400003)(7696005)(54906003)(36860700001)(8936002)(82310400005)(47076005)(1076003)(86362001)(19627235002)(478600001)(81166007)(356005)(40460700003)(40480700001)(41300700001)(316002)(36756003)(5660300002)(2616005)(6916009)(36900700001);DIR:OUT;SFP:1101; X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB6900 Return-Path: Sami.Mujawar@arm.com X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT062.eop-EUR03.prod.protection.outlook.com X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id-Prvs: aadfc421-cc12-4d47-3854-08da755d7f64 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: MALSd+3r5It6Sp3VcjIkXkQZrgsNAOug++yxMapPmgmiUr3NDBx43Lg570uUg1dXqY2vAOOHPb96XIXuaVtfj9wRkKoK/YY4ntsAkrCRzxoW+Ng4ZDyNTvt9zA9FWdVrd/srCFcewz7cVd1+HVNhnCtyf92QVm73JyZxI+1Gs0eQkTDXzD0vH9ZNoT7yFBIy9z0zQgiuv5PFkf5LMSNoNzyO8iyHs3xM0OUlQkrIJg9zri6SntaZBebFFUwLBCux1nodlMNIj9v0/SncsGqYQJ0hfHImwBEu8N/wNFnu+pibqlhLYAqsXsaMhc9KGCLvnMDnj4M0OYsNDwyqPlMXh1Bhlohi7m4JkZdAX2c2MzfR5hUFqLZUdRc0+1fUZQ/0+kErVWqOh58B4Kl2nAR3Kl6MKyoCnfqYSn/6M+osx7FqdRO4Z79S7UOiDUNqfXi03uoV3WnQaB+TdQ10nTzv15LRJN7rNpmUjNjBKWA7IOmEZHdXAWoM5ODay/5yPisofkWI2niP747MlqW5LN+giLHZ1EemzcpNgT+XAhFvvA4xMBxZhiaLczxC/ZweyvHGgpoYwOiXm+2rEjAwLFAl0ARE3xCHqGaQTaGLexJQ8n/4oc9DS2tFco9d763DPPhaR6vQVxXee8+Q1GanilSuMmxWG4OuV+qTjh45gK2tFxZNJCy/V/dZYL+7Ze+ag1PSpKZmIWPmbL1KTa6qsPt6lL1PWvu/q/90xXf2c2LFKYF4hn7DotLZrEJt96nHzdmx8x7QKDZFtZHIdlnv+6kD4s4M5OjiupRHVmVoP34ZAvZMThYUELC4H9TWERgKv9Ro X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(13230016)(4636009)(39860400002)(396003)(136003)(346002)(376002)(40470700004)(36840700001)(46966006)(478600001)(6666004)(83380400001)(336012)(426003)(82740400003)(186003)(2616005)(36756003)(1076003)(47076005)(44832011)(2906002)(7696005)(40460700003)(41300700001)(81166007)(54906003)(5660300002)(86362001)(19627235002)(316002)(6916009)(70586007)(26005)(36860700001)(40480700001)(82310400005)(8936002)(8676002)(4326008)(70206006);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Aug 2022 14:36:16.5560 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: f1ec0433-20dd-4c24-e453-08da755d85fd X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT062.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR08MB9051 Content-Type: text/plain From: Jose Marinho The GenFw invocation with the --prm flag was previously reserved for X64. AArch64 platforms, built with GCC5, can also deploy PRM modules, hence the --prm flag is also applicable in builds targeting the AARCH64 architecture. This commit enables the --prm flag to be used for EDK2 builds targeting AARCH64. Signed-off-by: Jose Marinho Signed-off-by: Sami Mujawar --- BaseTools/Source/C/GenFw/Elf64Convert.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BaseTools/Source/C/GenFw/Elf64Convert.c b/BaseTools/Source/C/GenFw/Elf64Convert.c index 2aa9bfcc9460c0a68208808e036fc631ae14f90e..35e96dd05bc26f7212d0f80af1ecb998bcb993dd 100644 --- a/BaseTools/Source/C/GenFw/Elf64Convert.c +++ b/BaseTools/Source/C/GenFw/Elf64Convert.c @@ -2,7 +2,7 @@ Elf64 convert solution Copyright (c) 2010 - 2021, Intel Corporation. All rights reserved.
-Portions copyright (c) 2013-2014, ARM Ltd. All rights reserved.
+Portions copyright (c) 2013-2022, ARM Ltd. All rights reserved.
Portions Copyright (c) 2020, Hewlett Packard Enterprise Development LP. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent @@ -186,8 +186,8 @@ InitializeElf64 ( } if (mExportFlag) { - if (mEhdr->e_machine != EM_X86_64) { - Error (NULL, 0, 3000, "Unsupported", "--prm option currently only supports X64 arch."); + if ((mEhdr->e_machine != EM_X86_64) && (mEhdr->e_machine != EM_AARCH64)) { + Error (NULL, 0, 3000, "Unsupported", "--prm option currently only supports X64 and AArch64 archs."); return FALSE; } } -- 'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'