From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from zrleap.intel-email.com (zrleap.intel-email.com [114.80.218.36]) by mx.groups.io with SMTP id smtpd.web11.25955.1685606462062335301 for ; Thu, 01 Jun 2023 01:01:02 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@byosoft.com.cn header.s=cloud-union header.b=PuzCskHF; spf=pass (domain: byosoft.com.cn, ip: 114.80.218.36, mailfrom: gaoliming@byosoft.com.cn) Received: from zrleap.intel-email.com (localhost [127.0.0.1]) by zrleap.intel-email.com (Postfix) with ESMTP id 3A6F3A32E342 for ; Thu, 1 Jun 2023 16:00:58 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=byosoft.com.cn; s=cloud-union; t=1685606458; bh=05XBRML+cEEdorXWjsIWdxu9O/+47brjC4az2IHEkjI=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=PuzCskHFtPXhmHJYPpCmNwdX82ya5q8YKmarweE+MGPXDDXuISUdTxrJNxvjCe14+ fFzq9gdte0rwaGJSXzaED1xVrR/ZlbY428YPI2Lg57SBiNs/46XUOQUqRA+pprDLRo cKdzWqEweyMWcISoDz4r5mPnsUtft8D5vvHR0ydc= Received: from localhost (localhost [127.0.0.1]) by zrleap.intel-email.com (Postfix) with ESMTP id 1BECDA32E325 for ; Thu, 1 Jun 2023 16:00:58 +0800 (CST) Received: from zrleap.intel-email.com (localhost [127.0.0.1]) by zrleap.intel-email.com (Postfix) with ESMTP id B8B13A32E311 for ; Thu, 1 Jun 2023 16:00:57 +0800 (CST) Authentication-Results: zrleap.intel-email.com; none Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by zrleap.intel-email.com (Postfix) with SMTP id 4DA8DA32E342 for ; Thu, 1 Jun 2023 16:00:54 +0800 (CST) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Thu, 01 Jun 2023 16:00:40 +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" To: "'Gerd Hoffmann'" , Cc: "'Daniel Schaefer'" , =?utf-8?Q?'Marvin_H=C3=A4user'?= , "'Rebecca Cran'" , "'Oliver Steffen'" , "'Pawel Polawski'" , "'Chao Li'" , "'Ard Biesheuvel'" , "'Bob Feng'" , "'Sunil V L'" , "'Michael D Kinney'" , "'Leif Lindholm'" , "'Dongyan Qian'" , "'Yuwei Chen'" , "'Baoqi Zhang'" , "'Zhiguang Liu'" , "'Ard Biesheuvel'" References: <20230524140600.1432056-1-kraxel@redhat.com> <20230524140600.1432056-3-kraxel@redhat.com> In-Reply-To: <20230524140600.1432056-3-kraxel@redhat.com> Subject: =?UTF-8?B?5Zue5aSNOiBbUEFUQ0ggdjYgMDIvMTFdIEJhc2VUb29sczogYWRkIC1mZGlyZWN0LWFjY2Vzcy1leHRlcm5hbC1kYXRhIHRvIGNsYW5nIHBpZSBidWlsZHM=?= Date: Thu, 1 Jun 2023 16:00:42 +0800 Message-ID: <021a01d9945f$29c6f910$7d54eb30$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQF/ItgcJ6hArps6mBMVmxqwH2FMDwI0FklgsBjXmhA= Sender: "gaoliming" Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Gerd and Ard: I want to confirm whether this option should also be added into = CLANGPDB_X64_CC_FLAGS. Thanks Liming > -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6----- > =E5=8F=91=E4=BB=B6=E4=BA=BA: Gerd Hoffmann > =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: = 2023=E5=B9=B45=E6=9C=8824=E6=97=A5 22:06 > =E6=94=B6=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io > =E6=8A=84=E9=80=81: Daniel Schaefer ; Marvin = H=C3=A4user > ; Rebecca Cran ; Oliver Steffen > ; Liming Gao ; Pawel > Polawski ; Chao Li ; Ard > Biesheuvel ; Bob Feng = ; > Sunil V L ; Michael D Kinney > ; Leif Lindholm = ; > Dongyan Qian ; Yuwei Chen > ; Baoqi Zhang ; Zhiguang > Liu ; Gerd Hoffmann ; Ard > Biesheuvel > =E4=B8=BB=E9=A2=98: [PATCH v6 02/11] BaseTools: add = -fdirect-access-external-data to clang > pie builds >=20 > Tell clang to not use external (via got) references for data access. >=20 > Signed-off-by: Gerd Hoffmann > Reviewed-by: Ard Biesheuvel > --- > BaseTools/Conf/tools_def.template | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) >=20 > diff --git a/BaseTools/Conf/tools_def.template > b/BaseTools/Conf/tools_def.template > index 503a6687c1f0..92421e3d0118 100755 > --- a/BaseTools/Conf/tools_def.template > +++ b/BaseTools/Conf/tools_def.template > @@ -1921,15 +1921,15 @@ NOOPT_CLANGDWARF_IA32_DLINK2_FLAGS > =3D DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O0 - > *_CLANGDWARF_X64_ASLPP_FLAGS =3D DEF(GCC_ASLPP_FLAGS) > DEF(CLANGDWARF_X64_TARGET) > *_CLANGDWARF_X64_VFRPP_FLAGS =3D DEF(GCC_VFRPP_FLAGS) > DEF(CLANGDWARF_X64_TARGET) >=20 > -DEBUG_CLANGDWARF_X64_CC_FLAGS =3D > DEF(CLANGDWARF_ALL_CC_FLAGS) -m64 > "-DEFIAPI=3D__attribute__((ms_abi))" -mno-red-zone -mcmodel=3Dsmall = -fpie -Oz > -flto DEF(CLANGDWARF_X64_TARGET) -g > +DEBUG_CLANGDWARF_X64_CC_FLAGS =3D > DEF(CLANGDWARF_ALL_CC_FLAGS) -m64 > "-DEFIAPI=3D__attribute__((ms_abi))" -mno-red-zone -mcmodel=3Dsmall = -fpie > -fdirect-access-external-data -Oz -flto DEF(CLANGDWARF_X64_TARGET) -g > DEBUG_CLANGDWARF_X64_DLINK_FLAGS =3D > DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -flto -Wl,-O3 -Wl,-melf_x86_64 > -Wl,--oformat,elf64-x86-64 -Wl,-pie -mcmodel=3Dsmall > -Wl,--apply-dynamic-relocs > DEBUG_CLANGDWARF_X64_DLINK2_FLAGS =3D > DEF(CLANGDWARF_X64_DLINK2_FLAGS) -O3 -fuse-ld=3Dlld >=20 > -RELEASE_CLANGDWARF_X64_CC_FLAGS =3D > DEF(CLANGDWARF_ALL_CC_FLAGS) -m64 > "-DEFIAPI=3D__attribute__((ms_abi))" -mno-red-zone -mcmodel=3Dsmall = -fpie -Oz > -flto DEF(CLANGDWARF_X64_TARGET) > +RELEASE_CLANGDWARF_X64_CC_FLAGS =3D > DEF(CLANGDWARF_ALL_CC_FLAGS) -m64 > "-DEFIAPI=3D__attribute__((ms_abi))" -mno-red-zone -mcmodel=3Dsmall = -fpie > -fdirect-access-external-data -Oz -flto DEF(CLANGDWARF_X64_TARGET) > RELEASE_CLANGDWARF_X64_DLINK_FLAGS =3D > DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -flto -Wl,-O3 -Wl,-melf_x86_64 > -Wl,--oformat,elf64-x86-64 -Wl,-pie -mcmodel=3Dsmall > -Wl,--apply-dynamic-relocs > RELEASE_CLANGDWARF_X64_DLINK2_FLAGS =3D > DEF(CLANGDWARF_X64_DLINK2_FLAGS) -O3 -fuse-ld=3Dlld >=20 > -NOOPT_CLANGDWARF_X64_CC_FLAGS =3D > DEF(CLANGDWARF_ALL_CC_FLAGS) -m64 > "-DEFIAPI=3D__attribute__((ms_abi))" -mno-red-zone -mcmodel=3Dsmall = -fpie -O0 > DEF(CLANGDWARF_X64_TARGET) -g > +NOOPT_CLANGDWARF_X64_CC_FLAGS =3D > DEF(CLANGDWARF_ALL_CC_FLAGS) -m64 > "-DEFIAPI=3D__attribute__((ms_abi))" -mno-red-zone -mcmodel=3Dsmall = -fpie > -fdirect-access-external-data -O0 DEF(CLANGDWARF_X64_TARGET) -g > NOOPT_CLANGDWARF_X64_DLINK_FLAGS =3D > DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -Wl,-O0 -Wl,-melf_x86_64 > -Wl,--oformat,elf64-x86-64 -Wl,-pie -mcmodel=3Dsmall > -Wl,--apply-dynamic-relocs > NOOPT_CLANGDWARF_X64_DLINK2_FLAGS =3D > DEF(CLANGDWARF_X64_DLINK2_FLAGS) -O0 -fuse-ld=3Dlld >=20 > -- > 2.40.1