From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from nwk-aaemail-lapp02.apple.com (nwk-aaemail-lapp02.apple.com [17.151.62.67]) by mx.groups.io with SMTP id smtpd.web11.12349.1603289139149404768 for ; Wed, 21 Oct 2020 07:05:39 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@apple.com header.s=20180706 header.b=UQ5vuVdz; spf=pass (domain: apple.com, ip: 17.151.62.67, mailfrom: afish@apple.com) Received: from pps.filterd (nwk-aaemail-lapp02.apple.com [127.0.0.1]) by nwk-aaemail-lapp02.apple.com (8.16.0.43/8.16.0.42) with SMTP id 09LDxk5C029149; Wed, 21 Oct 2020 07:05:35 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=apple.com; h=from : content-type : mime-version : subject : date : references : to : in-reply-to : message-id; s=20180706; bh=3lMUvEgDUMVOdpNkum0yf1VyoaDmzbKjRnmEgVcnosY=; b=UQ5vuVdzFn00FwswyseQTyXsocv0+qxOHwdGJKHSl+tBCbMdAI7k9GfzTie2CFTGqPth hD2PMVx2rBV/NwWtlN5EuZlrvhffz22G8uisjEQrXfwQfG+MOWICEzmKIYL4RM/ABJ/X ucjEMlxzzC30AOMR/xweEHm1c00QZCAy75eRFzRRWZpI4yI2euAy+N9aHbXdLQm/FYac +0iph07nJHFTYLmLM/QenOiRmVDleU1BBV4zB+XUwVf+8WAGe4JNwN2TkgsI0MbR0I5o 2GMqF1bLIVinwvHaw8HGzsduQZ6nrWGlzE44pvtzf2MATyKwHLBqB4GJgrucGnbThPrG FA== Received: from rn-mailsvcp-mta-lapp01.rno.apple.com (rn-mailsvcp-mta-lapp01.rno.apple.com [10.225.203.149]) by nwk-aaemail-lapp02.apple.com with ESMTP id 347w6h6w7x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 21 Oct 2020 07:05:35 -0700 Received: from rn-mailsvcp-mmp-lapp01.rno.apple.com (rn-mailsvcp-mmp-lapp01.rno.apple.com [17.179.253.14]) by rn-mailsvcp-mta-lapp01.rno.apple.com (Oracle Communications Messaging Server 8.1.0.6.20200729 64bit (built Jul 29 2020)) with ESMTPS id <0QIK00EHD1TBCFD0@rn-mailsvcp-mta-lapp01.rno.apple.com>; Wed, 21 Oct 2020 07:05:35 -0700 (PDT) Received: from process_milters-daemon.rn-mailsvcp-mmp-lapp01.rno.apple.com by rn-mailsvcp-mmp-lapp01.rno.apple.com (Oracle Communications Messaging Server 8.1.0.6.20200729 64bit (built Jul 29 2020)) id <0QIK004001NQYX00@rn-mailsvcp-mmp-lapp01.rno.apple.com>; Wed, 21 Oct 2020 07:05:35 -0700 (PDT) X-Va-A: X-Va-T-CD: 5b6c8f95ba972c9933f4305d948c5c3d X-Va-E-CD: e78f5a2b239083fddd7b02548df64ceb X-Va-R-CD: 0750e15d18b816e1968b2c0f7cf7ec20 X-Va-CD: 0 X-Va-ID: 47a19b7e-ee49-4f2c-81a7-b91ddee710e4 X-V-A: X-V-T-CD: 5b6c8f95ba972c9933f4305d948c5c3d X-V-E-CD: e78f5a2b239083fddd7b02548df64ceb X-V-R-CD: 0750e15d18b816e1968b2c0f7cf7ec20 X-V-CD: 0 X-V-ID: 242f94f1-831a-4575-9c49-baebe4e430c8 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.737 definitions=2020-10-21_06:2020-10-20,2020-10-21 signatures=0 Received: from [17.235.37.240] (unknown [17.235.37.240]) by rn-mailsvcp-mmp-lapp01.rno.apple.com (Oracle Communications Messaging Server 8.1.0.6.20200729 64bit (built Jul 29 2020)) with ESMTPSA id <0QIK0083O1T9P800@rn-mailsvcp-mmp-lapp01.rno.apple.com>; Wed, 21 Oct 2020 07:05:34 -0700 (PDT) From: "Andrew Fish" MIME-version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.1\)) Subject: Re: [edk2-devel] Overriding of linker in ed2 build system Date: Wed, 21 Oct 2020 07:05:33 -0700 References: To: edk2-devel-groups-io , prabin.ca@arm.com In-reply-to: Message-id: <3DD25804-436E-49BD-BFD5-656E6BEC97D7@apple.com> X-Mailer: Apple Mail (2.3608.120.23.2.1) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235,18.0.737 definitions=2020-10-21_06:2020-10-20,2020-10-21 signatures=0 Content-type: multipart/alternative; boundary="Apple-Mail=_430A9D23-4580-45B0-9415-BDEBCFF746AA" --Apple-Mail=_430A9D23-4580-45B0-9415-BDEBCFF746AA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii > On Oct 20, 2020, at 11:44 AM, Prabin CA wrote: >=20 > Hi All, > I'm trying to build edk2 source code using clang, I see that linker used= by edk2 build system is dependent on "-target " defined in "BaseT= ools/Conf/tools_def.template".=20 > I wish to use llvm provided linker, I had tried appending "-fuse-ld=3Dl= ld" option to "_CLANG38_AARCH64_DLINK_FLAGS" . But I still see the target = specific linker being used by edk2 build system. > Any advice what could be the right way of overriding with llvm based ld. >=20 Prabin, When you run edksetup.sh that copies BaseTools/Conf/tools_def.template to= Conf/tools_def.txt. So you need to edit the Conf/tools_def.txt file.=20 Thanks, Andrew Fish > Thanks and Best Regards > Prabin CA >=20 --Apple-Mail=_430A9D23-4580-45B0-9415-BDEBCFF746AA Content-Transfer-Encoding: 7bit Content-Type: text/html; charset=us-ascii

On Oct 20, 2020, at 11:44 AM, Prabin CA <prabin.ca@arm.com> wrote:

Hi All,
I'm trying to build edk2 source code using clang, I see that linker used by edk2 build system is dependent on "-target <triplet>" defined in "BaseTools/Conf/tools_def.template". 
I wish to use llvm provided linker, I had tried appending  "-fuse-ld=lld" option to  "_CLANG38_AARCH64_DLINK_FLAGS" . But I still see the target specific linker being used by edk2 build system.
Any advice what could be the right way of overriding with llvm based ld.


Prabin,

When you run edksetup.sh that copies  BaseTools/Conf/tools_def.template to Conf/tools_def.txt. So you need to edit the Conf/tools_def.txt file. 

Thanks,

Andrew Fish

Thanks and Best Regards
Prabin CA

--Apple-Mail=_430A9D23-4580-45B0-9415-BDEBCFF746AA--