From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 366F9AC09DD for ; Mon, 6 Nov 2023 01:03:41 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=kM8ESecemKlOn4//iqkXDqz59FARVCCwyKDlZDNHc0E=; c=relaxed/simple; d=groups.io; h=From:To:Cc:References:In-Reply-To:Subject:Date:Message-ID:MIME-Version:Thread-Index:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Type:Content-Transfer-Encoding:Content-Language; s=20140610; t=1699232619; v=1; b=bcTDuNmPtmLMOpGid8lrpeNjhOpuQkGSGfcQehrVdOTJq33+ocAnBU7MugEeAHVEUkeQbx0i PUJxdjEEn05JaL2s8C+DskX69OJfwKk61gX2nR+XCpgcuMQ9GDAwWvHDbziDaXWH0gB0aL1rq+J 7FqMxEiGbKRq9cyMlGp+bnGY= X-Received: by 127.0.0.2 with SMTP id ATcQYY7687511xDXPtFziq0f; Sun, 05 Nov 2023 17:03:39 -0800 X-Received: from cxsh.intel-email.com (cxsh.intel-email.com [121.46.250.151]) by mx.groups.io with SMTP id smtpd.web11.43832.1699232613683401705 for ; Sun, 05 Nov 2023 17:03:34 -0800 X-Received: from cxsh.intel-email.com (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id E9391DDA7B9 for ; Mon, 6 Nov 2023 09:03:30 +0800 (CST) X-Received: from localhost (localhost [127.0.0.1]) by cxsh.intel-email.com (Postfix) with ESMTP id E4D76DDA7A9 for ; Mon, 6 Nov 2023 09:03:30 +0800 (CST) X-Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by cxsh.intel-email.com (Postfix) with SMTP id 39131DDA7AE for ; Mon, 6 Nov 2023 09:03:28 +0800 (CST) X-Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP(SSL) for ; Mon, 06 Nov 2023 09:03:19 +0800 X-WM-Sender: gaoliming@byosoft.com.cn X-Originating-IP: 58.246.60.130 X-WM-AuthFlag: YES X-WM-AuthUser: gaoliming@byosoft.com.cn From: "gaoliming via groups.io" To: "'Yeping Song'" , Cc: "'Rebecca Cran'" , "'Bob Feng'" , "'Yuwei Chen'" , "'Ard Biesheuvel'" , "'Leif Lindholm'" , "'Sami Mujawar'" References: <20231103163739.68644-1-quic_yepings@quicinc.com> In-Reply-To: <20231103163739.68644-1-quic_yepings@quicinc.com> Subject: =?UTF-8?B?W2VkazItZGV2ZWxdIOWbnuWkjTogW1BBVENIIDEvMV0gQmFzZVRvb2xzL3Rvb2xzX2RlZjogZHJvcCAtbWdlbmVyYWwtcmVncy1vbmx5IGZvciBBQXJjaDY0IENMQU5HRFdBUkY=?= Date: Mon, 6 Nov 2023 09:03:19 +0800 Message-ID: <006101da104d$089241e0$19b6c5a0$@byosoft.com.cn> MIME-Version: 1.0 Thread-Index: AQIHYAhWQTKmBE5Y+WotqRYBzWqsy7AR2U+w Precedence: Bulk 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,gaoliming@byosoft.com.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: OK0iBCcnenSTtm6rGQgLBAVqx7686176AA= Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=bcTDuNmP; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: Yeping Song > =B7=A2=CB=CD=CA=B1=BC=E4: 2023=C4=EA11=D4=C24=C8=D5 0:38 > =CA=D5=BC=FE=C8=CB: devel@edk2.groups.io > =B3=AD=CB=CD: Yeping Song ; Rebecca Cran > ; Liming Gao ; Bob Feng > ; Yuwei Chen ; Ard > Biesheuvel ; Leif Lindholm > ; Sami Mujawar > =D6=F7=CC=E2: [PATCH 1/1] BaseTools/tools_def: drop -mgeneral-regs-only f= or > AArch64 CLANGDWARF >=20 > Commit 0df6c8c157af9 ("BaseTools/tools_def AARCH64: > avoid SIMD registers in XIP code") > adds -mgeneral-regs-only to GCC_AARCH64_CC_XIPFLAGS, > in order to avoid a bug present in certain versions of GCC. > This was never a problem for clang. > That's given the history of what the problem is. > Then we can describe how we fix it: > Change *_CLANGDWARF_AARCH64_CC_XIPFLAGS to set the required > -mstrict-align > option instead of importing the whole GCC variable. >=20 > Signed-off-by: Yeping Song > Cc: Rebecca Cran > Cc: Liming Gao > Cc: Bob Feng > Cc: Yuwei Chen > Cc: Ard Biesheuvel > Cc: Leif Lindholm > Cc: Sami Mujawar > --- > BaseTools/Conf/tools_def.template | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/BaseTools/Conf/tools_def.template > b/BaseTools/Conf/tools_def.template > index 5bd5283655ea..c34ecfd557c5 100755 > --- a/BaseTools/Conf/tools_def.template > +++ b/BaseTools/Conf/tools_def.template > @@ -2015,7 +2015,7 @@ DEFINE CLANGDWARF_AARCH64_DLINK_FLAGS > =3D DEF(CLANGDWARF_AARCH64_TARGET) DEF(GCC_ > *_CLANGDWARF_AARCH64_RC_FLAGS =3D > DEF(GCC_AARCH64_RC_FLAGS) DEF(GCC_AARCH64_RC_BTI_FLAGS) > *_CLANGDWARF_AARCH64_VFRPP_FLAGS =3D DEF(GCC_VFRPP_FLAGS) > DEF(CLANGDWARF_AARCH64_TARGET) $(PLATFORM_FLAGS) > *_CLANGDWARF_AARCH64_ASLPP_FLAGS =3D DEF(GCC_ASLPP_FLAGS) > DEF(CLANGDWARF_AARCH64_TARGET) > -*_CLANGDWARF_AARCH64_CC_XIPFLAGS =3D > DEF(GCC_AARCH64_CC_XIPFLAGS) > +*_CLANGDWARF_AARCH64_CC_XIPFLAGS =3D -mstrict-align >=20 > DEBUG_CLANGDWARF_AARCH64_CC_FLAGS =3D > DEF(CLANGDWARF_AARCH64_CC_FLAGS) $(PLATFORM_FLAGS) -flto -O1 > DEBUG_CLANGDWARF_AARCH64_DLINK_FLAGS =3D > DEF(CLANGDWARF_AARCH64_DLINK_FLAGS) -flto -Wl,-O1 -fuse-ld=3Dlld > -L$(WORKSPACE)/ArmPkg/Library/GccLto -llto-aarch64 > -Wl,-plugin-opt=3D-pass-through=3D-llto-aarch64 -Wl,--no-pie,--no-relax > -- > 2.25.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 (#110690): https://edk2.groups.io/g/devel/message/110690 Mute This Topic: https://groups.io/mt/102412109/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-