From mboxrd@z Thu Jan 1 00:00:00 1970 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.web09.5320.1650442590616442693 for ; Wed, 20 Apr 2022 01:16:30 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=QL4kXtwD; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: osteffen@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1650442589; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Uy8jU8f0rbFJe9DxSWYTtlQgK7HmOH+rNkg0VcUiAqM=; b=QL4kXtwDsyOGKt5MMI8/j9FlQ8XW4RLZw/7fMSmaBG12tm9nzVAbalm1FopP+vIMp09nB7 5me4qF7ObEaIeFcxuQGlcFQRXJo8cDlcbeHgwN1F70ge44edfRd6pl4M7Svm4t2ERJsu0t 7SPd6QVyBZQBOFJu9wP1aPvgnbNUo0Q= 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-295-YFVqC3uAPO2JyCqizGPpWg-1; Wed, 20 Apr 2022 04:16:24 -0400 X-MC-Unique: YFVqC3uAPO2JyCqizGPpWg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2E1CE3C01B94; Wed, 20 Apr 2022 08:16:24 +0000 (UTC) Received: from osteffen-laptop.redhat.com (unknown [10.39.193.120]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3E1B3404E4DB; Wed, 20 Apr 2022 08:16: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: [PATCH v2 0/1] BaseTools: disable stack protector (gcc, AARCH64) Date: Wed, 20 Apr 2022 10:16:02 +0200 Message-Id: <20220420081603.27503-1-osteffen@redhat.com> In-Reply-To: <16E78AC5D5F67B5F.27458@groups.io> References: <16E78AC5D5F67B5F.27458@groups.io> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.11.54.2 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=osteffen@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true PR: https://github.com/tianocore/edk2/pull/2795 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. v2: Set -fno-stack-portector for GCC starting with version 4.8 instead for all versions. Oliver Steffen (1): BaseTools: disable stack protector (gcc, AARCH64) BaseTools/Conf/tools_def.template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.36.0