From nobody Wed May 8 20:13:44 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+46820+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+46820+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1567614882; cv=none; d=zoho.com; s=zohoarc; b=dffAZdo8jQBhaTxqOGL6fMwA3J3x0IkutrqzmoBoaDISCAMDUm7UrQXQ9vlSBgOLhT0r3Z0erzVMLFrVPCKymm70TXUZapV3cEYonv927emKFWKLd05tHYALG3K3yGLtTfnT/JEWEM4dmYLlwGKgbxqYV/RTyGgGAD35LdhBOpA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1567614882; h=Cc:Date:From:List-Id:List-Unsubscribe:Message-ID:Reply-To:Sender:Subject:To:ARC-Authentication-Results; bh=Q+gpRSYfZSvuuypv0INrIIiEwqM9BUpQrmBBdiA+iyY=; b=e6tN0zjpJCxT6dcffoj/yLgmOc4H0ulH36Muy1rGvZguO9HiVt5lrzSbj7Iw1tMW5opTNQhNLFFROnvr3bSFLQPhkpABWIDb2kCDuyvI0d47Tq0fSihdmKMzoI5v5sZTS8+78m5ZDCaPybBmQyI+aAZVxWrFdEKkUFTFfWHb5kQ= ARC-Authentication-Results: i=1; mx.zoho.com; dkim=pass; spf=pass (zoho.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+46820+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1567614882671836.8011611233775; Wed, 4 Sep 2019 09:34:42 -0700 (PDT) Return-Path: X-Received: from mail-pl1-f195.google.com (mail-pl1-f195.google.com [209.85.214.195]) by groups.io with SMTP; Wed, 04 Sep 2019 09:34:41 -0700 X-Received: by mail-pl1-f195.google.com with SMTP id y1so9779051plp.9 for ; Wed, 04 Sep 2019 09:34:41 -0700 (PDT) X-Gm-Message-State: APjAAAUnUqwcYuTOnHwmg/jP3EcB1sv89zGtvV0ShlEIA8do9mcb3Nas Ct9K0pPn3sORmWJHWssIa15xMoxxwqPI9YqS X-Google-Smtp-Source: APXvYqwHxeCgIYXDx2s27wNy5fn/3yw7OIJkzY9B7diezLkM44DQDQiwcQo+1veHhwXCK+SFwxwOww== X-Received: by 2002:a17:902:8d82:: with SMTP id v2mr40808718plo.24.1567614880932; Wed, 04 Sep 2019 09:34:40 -0700 (PDT) X-Received: from e111045-lin.nice.arm.com ([104.133.8.102]) by smtp.gmail.com with ESMTPSA id g3sm25254816pfm.179.2019.09.04.09.34.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Sep 2019 09:34:40 -0700 (PDT) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: jaben.carsey@intel.com, ray.ni@intel.com, zhichao.gao@intel.com, leif.lindholm@linaro.org, liming.gao@intel.com, Ard Biesheuvel Subject: [edk2-devel] [PATCH] ShellPkg/ShellPkg.dsc AARCH64: enable stack protector Date: Wed, 4 Sep 2019 09:34:34 -0700 Message-Id: <20190904163434.16836-1-ard.biesheuvel@linaro.org> Precedence: Bulk List-Unsubscribe: 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,ard.biesheuvel@linaro.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1567614882; bh=OdJX9g43Jh0GVlMrnsaTYCbV3Cngs3Vt0NQjCGWFb1Y=; h=Cc:Date:From:Reply-To:Subject:To; b=t8KTNc28Lgmy5zHc88/H6nEKMrRwhNwfOO5Z0PgvtXJmxrK7nvu3hBlIazra0j8MnjU wfCuxEVYIIx3VFcDefh18zHjQU4+b/iGnD+137tonzTWdMUnHRj7DSHTQzSV9fums9T7s 9I5M79/LpsPkFKOgcJwhCBti1mw+YPOoYIg= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Incorporate the stack protector library into the AARCH64 build of the Shell binaries as a NULL library resolution, to avoid build errors when the compiler injects stack integrity checks. Signed-off-by: Ard Biesheuvel Acked-by: Zhichao Gao Reviewed-by: Leif Lindholm --- ShellPkg/ShellPkg.dsc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/ShellPkg/ShellPkg.dsc b/ShellPkg/ShellPkg.dsc index b2065dc028d8..91493400cab7 100644 --- a/ShellPkg/ShellPkg.dsc +++ b/ShellPkg/ShellPkg.dsc @@ -58,7 +58,7 @@ DxeServicesLib|MdePkg/Library/DxeServicesLib/DxeServicesLib.inf ReportStatusCodeLib|MdePkg/Library/BaseReportStatusCodeLibNull/BaseRepor= tStatusCodeLibNull.inf =20 -[LibraryClasses.ARM] +[LibraryClasses.ARM,LibraryClasses.AARCH64] # # It is not possible to prevent the ARM compiler for generic intrinsic f= unctions. # This library provides the instrinsic functions generate by a given com= piler. @@ -69,9 +69,6 @@ # Add support for GCC stack protector NULL|MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf =20 -[LibraryClasses.AARCH64] - NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf - [PcdsFixedAtBuild] gEfiMdePkgTokenSpaceGuid.PcdDebugPropertyMask|0xFF gEfiMdePkgTokenSpaceGuid.PcdUefiLibMaxPrintBufferSize|16000 --=20 2.17.1 -=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 (#46820): https://edk2.groups.io/g/devel/message/46820 Mute This Topic: https://groups.io/mt/33140662/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-