From nobody Wed May 15 22:22:41 2024 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+89080+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+89080+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1650379649; cv=none; d=zohomail.com; s=zohoarc; b=Ge5iCWrfudftE9opstGZC+AYHkLAc8OwcGowwQrbnxjHb0KAUDRyv7UOVODlj+MFZLJDX+JRIjyqN21/EVnPMpSl76mBAo3o3Z2cSoJeDjXR9AZPAiWkoHF7nMkKn2ff0qJ0pya5cuc89nRUz196NigTiGjYggrB7FIf3SRyEfU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1650379649; 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=B8HrrG/12bhhjhKRieZy3TcX/PjCHi3TYGaEyN2qDsk=; b=TYcNv7jA9q/PUg3lWVPGcBeM1NUq2ic5IIpIJ9xQwSA0fnOABg0BhPbsykzlXJgGq497D7Z+5OAgyxtgZjP2YlCddpUKBAiKmRUVDQkgNwBpxdIgF0bXY92y7wLAybxEtMyeRm2dUm+rRlqnbvyqelVCdw68lZZp1G+4+FL3yhE= 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+89080+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 1650379649881907.2285707304454; Tue, 19 Apr 2022 07:47:29 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id lpadYY1788612xAXG0mxkbAR; Tue, 19 Apr 2022 07:47:29 -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.web12.295.1650379648735637296 for ; Tue, 19 Apr 2022 07:47:29 -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-515-LYKRgArqN3ukP7gLhEVJwQ-1; Tue, 19 Apr 2022 10:47:24 -0400 X-MC-Unique: LYKRgArqN3ukP7gLhEVJwQ-1 X-Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 666E83C14CC3; Tue, 19 Apr 2022 14:47:24 +0000 (UTC) X-Received: from osteffen-laptop.fritz.box (unknown [10.39.192.173]) by smtp.corp.redhat.com (Postfix) with ESMTP id 884B840317D; Tue, 19 Apr 2022 14:47:23 +0000 (UTC) From: "Oliver Steffen" To: devel@edk2.groups.io Cc: bob.c.feng@intel.com, gaoliming@byosoft.com.cn, yuwei.chen@intel.com, Oliver Steffen Subject: [edk2-devel] [PATCH 1/1] BaseTools: disable stack protector (gcc, AARCH64) Date: Tue, 19 Apr 2022 16:46:57 +0200 Message-Id: <20220419144657.339414-2-osteffen@redhat.com> In-Reply-To: <20220419144657.339414-1-osteffen@redhat.com> References: <20220419144657.339414-1-osteffen@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.10 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,osteffen@redhat.com X-Gm-Message-State: oCPEatZWYQJCOLrR76fwLG2Ox1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1650379649; bh=VDUoft4e+Ol3F7n47k661O31nbwxHxmdonaiucZT8S4=; h=Cc:Content-Type:Date:From:Reply-To:Subject:To; b=YbbQ7lZVjgVMCu9rUZb4O+W2Qx+gjVkrNFzz2a2UuAMDIoc8tTsz5ELoUAvSYcs731J AVcT4sVvmt8LEGoGTPKEjkXEtOIrjGZp3HhXkuH0f39Dku17ZsUMyrO/UMx9UTIWlmCfk /lBKzAY91KrvZNuPwIFTJNd2N0++UbrW2/Y= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1650379650152100002 Content-Type: text/plain; charset="utf-8"; x-default="true" Explicity disable the stack protection with -fno-stack-protection for builds using GCC on AARCH64. The gcc on Ubuntu enables -fstack-protector-strong by default starting with Ubuntu 21.10. GenFw fails if stack protection is enabled. Signed-off-by: Oliver Steffen --- BaseTools/Conf/tools_def.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.t= emplate index 9c310cf23d25..bd3edf0d219b 100755 --- a/BaseTools/Conf/tools_def.template +++ b/BaseTools/Conf/tools_def.template @@ -1872,7 +1872,7 @@ DEFINE GCC_IA32_CC_FLAGS =3D DEF(GCC_ALL_CC= _FLAGS) -m32 -malign-double - DEFINE GCC_X64_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mno-red-zone= -Wno-address -mno-stack-arg-probe DEFINE GCC_ARM_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mlittle-endi= an -mabi=3Daapcs -fno-short-enums -funsigned-char -ffunction-sections -fdat= a-sections -fomit-frame-pointer -Wno-address -mthumb -mfloat-abi=3Dsoft -fn= o-pic -fno-pie DEFINE GCC_ARM_CC_XIPFLAGS =3D -mno-unaligned-access -DEFINE GCC_AARCH64_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mlittle-endi= an -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fda= ta-sections -Wno-address -fno-asynchronous-unwind-tables -fno-unwind-tables= -fno-pic -fno-pie -ffixed-x18 +DEFINE GCC_AARCH64_CC_FLAGS =3D DEF(GCC_ALL_CC_FLAGS) -mlittle-endi= an -fno-short-enums -fverbose-asm -funsigned-char -ffunction-sections -fda= ta-sections -Wno-address -fno-asynchronous-unwind-tables -fno-unwind-tables= -fno-pic -fno-pie -ffixed-x18 -fno-stack-protector DEFINE GCC_AARCH64_CC_XIPFLAGS =3D -mstrict-align -mgeneral-regs-only DEFINE GCC_DLINK_FLAGS_COMMON =3D -nostdlib --pie DEFINE GCC_DLINK2_FLAGS_COMMON =3D -Wl,--script=3D$(EDK_TOOLS_PATH)/Sc= ripts/GccBase.lds --=20 2.35.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 (#89080): https://edk2.groups.io/g/devel/message/89080 Mute This Topic: https://groups.io/mt/90563063/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-