From nobody Mon Feb 9 17:36:12 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+102842+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+102842+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1681227977; cv=none; d=zohomail.com; s=zohoarc; b=XarBp4otySsoJYF76HoKiSiVjxVKlaApf0nQWOSbAun+aOpFO6E+ipYa4bcxxi2EfGU6xeodZr15V9a4VfqSqm3C9WAY85We9k4SqOVxX8jrgi9W4xBgs1BNi5JmXYwpPVGaeKFkedhn7rxHvxFYfAxm8YobzhpCQ5kBVGcmZEs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1681227977; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=sa0QZgyC1O6seArB9oIZse8nv30D5et7qZ2Q5M+iFqg=; b=JUCh60NdZhf6oJ2Yt9o6tTDZrgvyrvCygLMiWMo96uhHmvR8ZxDcxHY/NYxyyOZdfi4bjfasWaLbcjoYsG4PAA8swOMqB6aJ/nooJuwlGQMu7rzoleghI8SdcYXK77rUf9YRmd+RVbRwwIw04P7swGld7Zj77i0GezGmN51+k/A= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+102842+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1681227977333260.2832867736753; Tue, 11 Apr 2023 08:46:17 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id YHr7YY1788612xT80cUTUrty; Tue, 11 Apr 2023 08:46:17 -0700 X-Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.18002.1681227975969788892 for ; Tue, 11 Apr 2023 08:46:16 -0700 X-Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-277-JuR_CRYGPIGbxuN3duQGOw-1; Tue, 11 Apr 2023 11:46:09 -0400 X-MC-Unique: JuR_CRYGPIGbxuN3duQGOw-1 X-Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 41DD51C05B13; Tue, 11 Apr 2023 15:46:08 +0000 (UTC) X-Received: from sirius.home.kraxel.org (unknown [10.39.194.67]) by smtp.corp.redhat.com (Postfix) with ESMTPS id EB878112132D; Tue, 11 Apr 2023 15:46:07 +0000 (UTC) X-Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 71E5E1802399; Tue, 11 Apr 2023 17:45:56 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Baoqi Zhang , Leif Lindholm , Michael D Kinney , Bob Feng , Pawel Polawski , Dongyan Qian , Zhiguang Liu , Sunil V L , Liming Gao , =?UTF-8?q?Marvin=20H=C3=A4user?= , Chao Li , Ard Biesheuvel , Yuwei Chen , Daniel Schaefer , Oliver Steffen , Gerd Hoffmann Subject: [edk2-devel] [PATCH v2 5/8] BaseTools: drop IMAGE_FILE_MACHINE_ARM hacks Date: Tue, 11 Apr 2023 17:45:53 +0200 Message-Id: <20230411154556.835538-6-kraxel@redhat.com> In-Reply-To: <20230411154556.835538-1-kraxel@redhat.com> References: <20230411154556.835538-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,kraxel@redhat.com X-Gm-Message-State: oSc1Kw1ZgE5onaBiRuX6csfox1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1681227977; bh=jYa7kfU4oj6m7wuWzy3CUsqpglaC926TTSKOjV5Vqd8=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=qc0gmTR4B5J8IU/bFTlOdztUgaCiz5YF/uHQCtpyMmSsyH9BPC61NY2Bx0KQaYgU9Kn FwSlpm6cANdUy1BxDOZsKSMV+ju1dzOyGQZMrVCfU9XVStkwe6VXcRC5qhVdNxwyfrpNs DHj6CRf098N5hZx8yTVyLGOyfAzxAqfrBIo= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1681227979281100017 Content-Type: text/plain; charset="utf-8"; x-default="true" The #define for IMAGE_FILE_MACHINE_ARM is not present in MdePkg, this looks like a relic not used any more. Remove. Signed-off-by: Gerd Hoffmann --- BaseTools/Source/C/Common/BasePeCoff.c | 23 ++++------------------- 1 file changed, 4 insertions(+), 19 deletions(-) diff --git a/BaseTools/Source/C/Common/BasePeCoff.c b/BaseTools/Source/C/Co= mmon/BasePeCoff.c index b8bfb7b58b91..0172370174b6 100644 --- a/BaseTools/Source/C/Common/BasePeCoff.c +++ b/BaseTools/Source/C/Common/BasePeCoff.c @@ -176,25 +176,10 @@ PeCoffLoaderCheckImageType ( ImageContext->Machine !=3D EFI_IMAGE_MACHINE_AARCH64 && \ ImageContext->Machine !=3D EFI_IMAGE_MACHINE_RISCV64 && \ ImageContext->Machine !=3D EFI_IMAGE_MACHINE_LOONGARCH64) { - if (ImageContext->Machine =3D=3D IMAGE_FILE_MACHINE_ARM) { - // - // There are two types of ARM images. Pure ARM and ARM/Thumb. - // If we see the ARM say it is the ARM/Thumb so there is only - // a single machine type we need to check for ARM. - // - ImageContext->Machine =3D EFI_IMAGE_MACHINE_ARMT; - if (ImageContext->IsTeImage =3D=3D FALSE) { - PeHdr->Pe32.FileHeader.Machine =3D ImageContext->Machine; - } else { - TeHdr->Machine =3D ImageContext->Machine; - } - - } else { - // - // unsupported PeImage machine type - // - return RETURN_UNSUPPORTED; - } + // + // unsupported PeImage machine type + // + return RETURN_UNSUPPORTED; } =20 // --=20 2.39.2 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#102842): https://edk2.groups.io/g/devel/message/102842 Mute This Topic: https://groups.io/mt/98200428/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-