From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from walk.intel-email.com (walk.intel-email.com [101.227.64.242]) by mx.groups.io with SMTP id smtpd.web10.59460.1679982133092373876 for ; Mon, 27 Mar 2023 22:42:16 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@byosoft.com.cn header.s=cloud-union header.b=Ad3zhgBe; spf=pass (domain: byosoft.com.cn, ip: 101.227.64.242, mailfrom: gaoliming@byosoft.com.cn) Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 1C22BCD1F6B1 for ; Tue, 28 Mar 2023 13:42:10 +0800 (CST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=byosoft.com.cn; s=cloud-union; t=1679982130; bh=0oYARW1C0CFiJGeZauFtBSGfx0M7eT+PreeML/gGhN0=; h=From:To:Cc:References:In-Reply-To:Subject:Date; b=Ad3zhgBeZgYVmUBW7YnDZ43HlagKl1Mq6xoLNC2osyGPhyPJ5OslwRedpVgRebf7x BTeixjRc4O/vlsxSfJ7FQDjv2efKEuY5dv6xSJW0TJqEb9stw6IXl3bRMXuCrYK4bv hpV4ldFasjdTDlX34OthItSxNkBzwC+cdeUBb6sk= Received: from localhost (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id 18057CD1F6C1 for ; Tue, 28 Mar 2023 13:42:10 +0800 (CST) Received: from walk.intel-email.com (localhost [127.0.0.1]) by walk.intel-email.com (Postfix) with ESMTP id DBF3ACD1F6A8 for ; Tue, 28 Mar 2023 13:42:09 +0800 (CST) Authentication-Results: walk.intel-email.com; none Received: from mail.byosoft.com.cn (mail.byosoft.com.cn [58.240.74.242]) by walk.intel-email.com (Postfix) with SMTP id 69A5ECD1F6B1 for ; Tue, 28 Mar 2023 13:42:07 +0800 (CST) Received: from DESKTOPS6D0PVI ([58.246.60.130]) (envelope-sender ) by 192.168.6.13 with ESMTP for ; Tue, 28 Mar 2023 13:42:01 +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: , Cc: , , , , , References: <20230317140627.1033739-1-patrick.rudolph@9elements.com> In-Reply-To: <20230317140627.1033739-1-patrick.rudolph@9elements.com> Subject: =?UTF-8?B?5Zue5aSNOiBbZWRrMi1kZXZlbF0gW1BBVENIIDEvM10gQmFzZVRvb2xzL0NvbmYvdG9vbHNfZGVmOiBGaXggbGlua2luZyB1c2luZyBDTEFOR0RXQVJGX0lBMzI=?= Date: Tue, 28 Mar 2023 13:42:04 +0800 Message-ID: <023901d96138$06eeb3b0$14cc1b10$@byosoft.com.cn> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Thread-Index: AQKSoszT0KMmiNViEYSVaC/WVGhL2q2dKl7Q Sender: "gaoliming" Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable Content-Language: zh-cn Reviewed-by: Liming Gao > -----=D3=CA=BC=FE=D4=AD=BC=FE----- > =B7=A2=BC=FE=C8=CB: devel@edk2.groups.io = =B4=FA=B1=ED Patrick > Rudolph > =B7=A2=CB=CD=CA=B1=BC=E4: 2023=C4=EA3=D4=C217=C8=D5 22:06 > =B3=AD=CB=CD: devel@edk2.groups.io; guo.dong@intel.com; = gua.guo@intel.com; > james.lu@intel.com; ray.ni@intel.com; mhaeuser@posteo.de; > ardb@kernel.org > =D6=F7=CC=E2: [edk2-devel] [PATCH 1/3] BaseTools/Conf/tools_def: Fix = linking using > CLANGDWARF_IA32 >=20 > The clang toolchain might default to fPIE/fPIC, which prevents > lld from linking the objects into a binary. >=20 > Specify -fno-pie -fno-pic as done on GCC to fix linking. >=20 > Test: > Building the Universal Payload using the command > 'python UefiPayloadPkg/UniversalPayloadBuild.py -a IA32' actually > works. >=20 > Signed-off-by: Patrick Rudolph > Ref: https://bugzilla.tianocore.org/show_bug.cgi?id=3D4356 > --- > BaseTools/Conf/tools_def.template | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) >=20 > diff --git a/BaseTools/Conf/tools_def.template > b/BaseTools/Conf/tools_def.template > index 471eb67c0c..9b59bd75c3 100755 > --- a/BaseTools/Conf/tools_def.template > +++ b/BaseTools/Conf/tools_def.template > @@ -2888,7 +2888,7 @@ DEFINE CLANGDWARF_X64_DLINK2_FLAGS > =3D -Wl,--defsym=3DPECOFF_HEADER_SIZE=3D0x22 > *_CLANGDWARF_IA32_RC_PATH =3D > DEF(CLANGDWARF_IA32_PREFIX)llvm-rc >=20 >=20 >=20 > *_CLANGDWARF_IA32_ASLCC_FLAGS =3D DEF(GCC_ASLCC_FLAGS) > -m32 -fno-lto DEF(CLANG38_IA32_TARGET) >=20 > -*_CLANGDWARF_IA32_ASLDLINK_FLAGS =3D > DEF(CLANGDWARF_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_i386 -fuse-ld=3Dlld >=20 > +*_CLANGDWARF_IA32_ASLDLINK_FLAGS =3D > DEF(CLANGDWARF_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_i386 -fuse-ld=3Dlld > -no-pie >=20 > *_CLANGDWARF_IA32_ASM_FLAGS =3D DEF(GCC5_ASM_FLAGS) > -m32 -march=3Di386 DEF(CLANG38_IA32_TARGET) >=20 > *_CLANGDWARF_IA32_RC_FLAGS =3D > DEF(GCC_IA32_RC_FLAGS) >=20 > *_CLANGDWARF_IA32_OBJCOPY_FLAGS =3D >=20 > @@ -2897,17 +2897,17 @@ DEFINE CLANGDWARF_X64_DLINK2_FLAGS > =3D -Wl,--defsym=3DPECOFF_HEADER_SIZE=3D0x22 > *_CLANGDWARF_IA32_ASLPP_FLAGS =3D DEF(GCC_ASLPP_FLAGS) > DEF(CLANG38_IA32_TARGET) >=20 > *_CLANGDWARF_IA32_VFRPP_FLAGS =3D DEF(GCC_VFRPP_FLAGS) > DEF(CLANG38_IA32_TARGET) >=20 >=20 >=20 > -DEBUG_CLANGDWARF_IA32_CC_FLAGS =3D > DEF(CLANG38_ALL_CC_FLAGS) -m32 -Oz -flto -march=3Di586 > DEF(CLANG38_IA32_TARGET) -g -malign-double >=20 > +DEBUG_CLANGDWARF_IA32_CC_FLAGS =3D > DEF(CLANG38_ALL_CC_FLAGS) -fno-pic -fno-pie -m32 -Oz -flto = -march=3Di586 > DEF(CLANG38_IA32_TARGET) -g -malign-double >=20 > DEBUG_CLANGDWARF_IA32_DLINK_FLAGS =3D > DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -flto -Wl,-O3 -Wl,-melf_i386 > -Wl,--oformat,elf32-i386 >=20 > -DEBUG_CLANGDWARF_IA32_DLINK2_FLAGS =3D > DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O3 -fuse-ld=3Dlld >=20 > +DEBUG_CLANGDWARF_IA32_DLINK2_FLAGS =3D > DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O3 -fuse-ld=3Dlld -no-pie >=20 >=20 >=20 > -RELEASE_CLANGDWARF_IA32_CC_FLAGS =3D > DEF(CLANG38_ALL_CC_FLAGS) -m32 -Oz -flto -march=3Di586 > DEF(CLANG38_IA32_TARGET) -malign-double >=20 > +RELEASE_CLANGDWARF_IA32_CC_FLAGS =3D > DEF(CLANG38_ALL_CC_FLAGS) -fno-pic -fno-pie -m32 -Oz -flto = -march=3Di586 > DEF(CLANG38_IA32_TARGET) -malign-double >=20 > RELEASE_CLANGDWARF_IA32_DLINK_FLAGS =3D > DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -flto -Wl,-O3 -Wl,-melf_i386 > -Wl,--oformat,elf32-i386 >=20 > -RELEASE_CLANGDWARF_IA32_DLINK2_FLAGS =3D > DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O3 -fuse-ld=3Dlld >=20 > +RELEASE_CLANGDWARF_IA32_DLINK2_FLAGS =3D > DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O3 -fuse-ld=3Dlld -no-pie >=20 >=20 >=20 > -NOOPT_CLANGDWARF_IA32_CC_FLAGS =3D > DEF(CLANG38_ALL_CC_FLAGS) -m32 -O0 -march=3Di586 > DEF(CLANG38_IA32_TARGET) -g -malign-double >=20 > +NOOPT_CLANGDWARF_IA32_CC_FLAGS =3D > DEF(CLANG38_ALL_CC_FLAGS) -fno-pic -fno-pie -m32 -O0 -march=3Di586 > DEF(CLANG38_IA32_TARGET) -g -malign-double >=20 > NOOPT_CLANGDWARF_IA32_DLINK_FLAGS =3D > DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -Wl,-O0 -Wl,-melf_i386 > -Wl,--oformat,elf32-i386 >=20 > -NOOPT_CLANGDWARF_IA32_DLINK2_FLAGS =3D > DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O0 -fuse-ld=3Dlld >=20 > +NOOPT_CLANGDWARF_IA32_DLINK2_FLAGS =3D > DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O0 -fuse-ld=3Dlld -no-pie >=20 >=20 >=20 > ########################## >=20 > # CLANGDWARF X64 definitions >=20 > -- > 2.39.1 >=20 >=20 >=20 > -=3D-=3D-=3D-=3D-=3D-=3D > Groups.io Links: You receive all messages sent to this group. > View/Reply Online (#101340): > https://edk2.groups.io/g/devel/message/101340 > Mute This Topic: https://groups.io/mt/97673648/4905953 > Group Owner: devel+owner@edk2.groups.io > Unsubscribe: https://edk2.groups.io/g/devel/unsub > [gaoliming@byosoft.com.cn] > -=3D-=3D-=3D-=3D-=3D-=3D >=20