From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.66]) by mx.groups.io with SMTP id smtpd.web11.19932.1680163503892881331 for ; Thu, 30 Mar 2023 01:05:04 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@posteo.de header.s=2017 header.b=SiaJW0Y8; spf=pass (domain: posteo.de, ip: 185.67.36.66, mailfrom: mhaeuser@posteo.de) Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 4EEF124017C for ; Thu, 30 Mar 2023 10:05:02 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1680163502; bh=CGTdjWJrJhjqJsIGqdx0kQgkc/9nJVFbEC3B6E7qGps=; h=Subject:From:Cc:Date:To:From; b=SiaJW0Y8qZ6y2QVP7mCVapRfSMJBLFP2WEhEik2sQC4VlhS5zORgLwT0kvHay9lkV sTmHQaImtcNqx0a5HE5icWYFzZ4s9Oj1XpcuP9FDW0UVYN8Gkh1cdrnYh0CPXXC3By tJMiVEEJtYR7i/uRcBgs6vaFyWbHVBBw5gLTvBiN66z1Bp7dM1tG7Dq1FSn3taVmai +BOmzhMQ7T7Aaxt1icBd8T0aQR6y5P3w+3+aMuEz9yfanWP2lbOkC0ZvpWxJmEtWwy NIrNqq0FwY4LGR3rR5EeE6yNUWUQ3SXFKau9Nrn/0GyKCB2hYGiWnb1oEUODWoab/s kA6AIUJAaXUGg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4PnGDW1McWz9rxM; Thu, 30 Mar 2023 10:04:58 +0200 (CEST) Mime-Version: 1.0 (1.0) Subject: Re: [edk2-devel] [PATCH 1/3] BaseTools/Conf/tools_def: Fix linking using CLANGDWARF_IA32 From: =?UTF-8?B?TWFydmluIEjDpHVzZXI=?= In-Reply-To: Cc: devel@edk2.groups.io, gaoliming@byosoft.com.cn, rebecca@bsdio.com, "Feng, Bob C" , yuwei.chen@intel.com, patrick.rudolph@9elements.com, gua.guo@intel.com, james.lu@intel.com, ardb@kernel.org Date: Thu, 30 Mar 2023 08:04:58 +0000 Message-Id: References: To: Lean Sheng Tan Content-Type: multipart/alternative; boundary=Apple-Mail-45BD399B-1598-4943-82DF-95D8E709543C Content-Transfer-Encoding: 7bit --Apple-Mail-45BD399B-1598-4943-82DF-95D8E709543C Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable
<= div dir=3D"ltr">Hi Lean,

I= don=E2=80=99t think individual patches from a series are merged generally.= Your 2/3 has open concerns from both Liming and myself.

Best regards,
Marvin

On 30. Mar 2023, at 09:3= 1, Lean Sheng Tan <sheng.tan@9elements.com> wrote:

=EF=BB=BF
HI Liming,
If no further concern, would you mind to help get thi= s patch merged?
Thanks!

Best Regards,
Lean Sheng Tan


On Tue, 28 Mar 2023 at 07:42, gaoliming via groups.io <gaoliming=3Dbyosoft.com.cn@groups.io> wrote:
Reviewed-by: Liming Gao <gaoliming@byosoft.co= m.cn>

> -----=E9=82=AE=E4=BB=B6=E5=8E=9F=E4=BB=B6-----
> =E5=8F=91=E4=BB=B6=E4=BA=BA: devel@edk2.groups.io <devel@edk2.groups.io> =E4=BB=A3=E8=A1= =A8 Patrick
> Rudolph
> =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2023=E5=B9=B43=E6=9C=8817=E6=97= =A5 22:06
> =E6=8A=84=E9=80=81: devel@edk2.groups.io; guo.dong@intel.com; gua.guo@intel.com;
> james.lu@intel= .com; ray.ni@inte= l.com; mhaeuser= @posteo.de;
> ardb@kernel.org
> =E4=B8=BB=E9=A2=98: [edk2-devel] [PATCH 1/3] BaseTools/Conf/tools_def:= Fix linking using
> CLANGDWARF_IA32
>
> The clang toolchain might default to fPIE/fPIC, which prevents
> lld from linking the objects into a binary.
>
> Specify -fno-pie -fno-pic as done on GCC to fix linking.
>
> Test:
> Building the Universal Payload using the command
> 'python UefiPayloadPkg/UniversalPayloadBuild.py -a IA32' actually
> works.
>
> Signed-off-by: Patrick Rudolph <
patrick.rudolph@9elements.com>
> Ref: https://bugzilla.tianocore.org/show_b= ug.cgi?id=3D4356
> ---
>  BaseTools/Conf/tools_def.template | 14 +++++++-------
>  1 file changed, 7 insertions(+), 7 deletions(-)
>
> 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          &nbs= p;   =3D
> DEF(CLANGDWARF_IA32_PREFIX)llvm-rc
>
>
>
>  *_CLANGDWARF_IA32_ASLCC_FLAGS          = =3D DEF(GCC_ASLCC_FLAGS)
> -m32 -fno-lto DEF(CLANG38_IA32_TARGET)
>
> -*_CLANGDWARF_IA32_ASLDLINK_FLAGS       =3D
> DEF(CLANGDWARF_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_i386 -fuse-ld=3Dlld=
>
> +*_CLANGDWARF_IA32_ASLDLINK_FLAGS       =3D
> DEF(CLANGDWARF_IA32_X64_ASLDLINK_FLAGS) -Wl,-m,elf_i386 -fuse-ld=3Dlld=
> -no-pie
>
>  *_CLANGDWARF_IA32_ASM_FLAGS          &n= bsp; =3D DEF(GCC5_ASM_FLAGS)
> -m32 -march=3Di386 DEF(CLANG38_IA32_TARGET)
>
>  *_CLANGDWARF_IA32_RC_FLAGS          &nb= sp;  =3D
> DEF(GCC_IA32_RC_FLAGS)
>
>  *_CLANGDWARF_IA32_OBJCOPY_FLAGS        =3D >
> @@ -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)
>
>  *_CLANGDWARF_IA32_VFRPP_FLAGS          = =3D DEF(GCC_VFRPP_FLAGS)
> DEF(CLANG38_IA32_TARGET)
>
>
>
> -DEBUG_CLANGDWARF_IA32_CC_FLAGS         =3D > DEF(CLANG38_ALL_CC_FLAGS) -m32 -Oz -flto -march=3Di586
> DEF(CLANG38_IA32_TARGET) -g -malign-double
>
> +DEBUG_CLANGDWARF_IA32_CC_FLAGS         =3D > DEF(CLANG38_ALL_CC_FLAGS) -fno-pic -fno-pie -m32 -Oz -flto -march=3Di5= 86
> DEF(CLANG38_IA32_TARGET) -g -malign-double
>
>  DEBUG_CLANGDWARF_IA32_DLINK_FLAGS      =3D
> DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -flto -Wl,-O3 -Wl,-melf_i386
> -Wl,--oformat,elf32-i386
>
> -DEBUG_CLANGDWARF_IA32_DLINK2_FLAGS     =3D
> DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O3 -fuse-ld=3Dlld
>
> +DEBUG_CLANGDWARF_IA32_DLINK2_FLAGS     =3D
> DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O3 -fuse-ld=3Dlld -no-pie
>
>
>
> -RELEASE_CLANGDWARF_IA32_CC_FLAGS       =3D
> DEF(CLANG38_ALL_CC_FLAGS) -m32 -Oz -flto -march=3Di586
> DEF(CLANG38_IA32_TARGET) -malign-double
>
> +RELEASE_CLANGDWARF_IA32_CC_FLAGS       =3D
> DEF(CLANG38_ALL_CC_FLAGS) -fno-pic -fno-pie -m32 -Oz -flto -march=3Di5= 86
> DEF(CLANG38_IA32_TARGET) -malign-double
>
>  RELEASE_CLANGDWARF_IA32_DLINK_FLAGS    =3D
> DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -flto -Wl,-O3 -Wl,-melf_i386
> -Wl,--oformat,elf32-i386
>
> -RELEASE_CLANGDWARF_IA32_DLINK2_FLAGS   =3D
> DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O3 -fuse-ld=3Dlld
>
> +RELEASE_CLANGDWARF_IA32_DLINK2_FLAGS   =3D
> DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O3 -fuse-ld=3Dlld -no-pie
>
>
>
> -NOOPT_CLANGDWARF_IA32_CC_FLAGS         =3D > DEF(CLANG38_ALL_CC_FLAGS) -m32 -O0 -march=3Di586
> DEF(CLANG38_IA32_TARGET) -g -malign-double
>
> +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
>
>  NOOPT_CLANGDWARF_IA32_DLINK_FLAGS      =3D
> DEF(CLANGDWARF_IA32_X64_DLINK_FLAGS) -Wl,-O0 -Wl,-melf_i386
> -Wl,--oformat,elf32-i386
>
> -NOOPT_CLANGDWARF_IA32_DLINK2_FLAGS     =3D
> DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O0 -fuse-ld=3Dlld
>
> +NOOPT_CLANGDWARF_IA32_DLINK2_FLAGS     =3D
> DEF(CLANGDWARF_IA32_DLINK2_FLAGS) -O0 -fuse-ld=3Dlld -no-pie
>
>
>
>  ##########################
>
>  # CLANGDWARF X64 definitions
>
> --
> 2.39.1
>
>
>
> -=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<= br> > Mute This Topic: https://groups.io/mt/97673648/4905953=
> Group Owner: devel+owner@edk2.groups.io
> Unsubscribe: https://edk2.groups.io/g/devel/unsub
> [gaolimi= ng@byosoft.com.cn]
> -=3D-=3D-=3D-=3D-=3D-=3D
>








--Apple-Mail-45BD399B-1598-4943-82DF-95D8E709543C--