From: "gaoliming" <gaoliming@byosoft.com.cn>
To: <devel@edk2.groups.io>, <prabin.ca@arm.com>,
"'Andrew Fish'" <afish@apple.com>
Subject: 回复: [edk2-devel] Overriding of linker in ed2 build system
Date: Fri, 30 Oct 2020 10:04:57 +0800 [thread overview]
Message-ID: <005e01d6ae61$10e25f20$32a71d60$@byosoft.com.cn> (raw)
In-Reply-To: <13533.1603877746934967920@groups.io>
[-- Attachment #1: Type: text/plain, Size: 2287 bytes --]
Another way to override the build option is in [BuildOptions] DSC file.
In PlatformPkg.dsc, you can specify the build options as below.
[BuildOptions]
*_CLANG38_AARCH64_DLINK_FLAGS = -target aarch64-poky-linux -fuse-ld=lld
Thanks
Liming
发件人: bounce+27952+66692+4905953+8761045@groups.io <bounce+27952+66692+4905953+8761045@groups.io> 代表 Prabin CA
发送时间: 2020年10月28日 17:36
收件人: Andrew Fish <afish@apple.com>; devel@edk2.groups.io
主题: Re: [edk2-devel] Overriding of linker in ed2 build system
Hi Andrew,
I had edited tools_def.txt file with following changes (shown diff below)
##################
# CLANG38 AARCH64 definitions
##################
-DEFINE CLANG38_AARCH64_TARGET = -target aarch64-linux-gnu
+DEFINE CLANG38_AARCH64_TARGET = -target aarch64-poky-linux
DEFINE CLANG38_AARCH64_CC_FLAGS = DEF(GCC_AARCH64_CC_FLAGS) DEF(CLANG38_AARCH64_TARGET) -mcmodel=small DEF(CLANG38_WARNING_OVERRIDES)
DEFINE CLANG38_AARCH64_DLINK_FLAGS = DEF(CLANG38_AARCH64_TARGET) DEF(GCC_AARCH64_DLINK_FLAGS) -z common-page-size=0x1000
@@ -2767,7 +2767,7 @@ DEFINE CLANG38_AARCH64_DLINK_FLAGS = DEF(CLANG38_AARCH64_TARGET) DEF(GCC_AARCH6
*_CLANG38_AARCH64_ASLCC_FLAGS = DEF(GCC_ASLCC_FLAGS) -fno-lto
*_CLANG38_AARCH64_ASLDLINK_FLAGS = DEF(CLANG38_AARCH64_TARGET) DEF(GCC_AARCH64_ASLDLINK_FLAGS)
*_CLANG38_AARCH64_ASM_FLAGS = DEF(GCC_ASM_FLAGS) DEF(CLANG38_AARCH64_TARGET) $(ARCHASM_FLAGS) $(PLATFORM_FLAGS) -Qunused-arguments
-*_CLANG38_AARCH64_DLINK_FLAGS = DEF(CLANG38_AARCH64_TARGET) DEF(GCC_AARCH64_DLINK_FLAGS) -z common-page-size=0x1000
+*_CLANG38_AARCH64_DLINK_FLAGS = DEF(CLANG38_AARCH64_TARGET) DEF(GCC_AARCH64_DLINK_FLAGS) -z common-page-size=0x1000 -fuse-ld=lld
*_CLANG38_AARCH64_DLINK_XIPFLAGS = -z common-page-size=0x20
*_CLANG38_AARCH64_DLINK2_FLAGS = DEF(GCC_DLINK2_FLAGS_COMMON) -Wl,--defsym=PECOFF_HEADER_SIZE=0x228
*_CLANG38_AARCH64_PLATFORM_FLAGS =
Please validate the changes first, now its picking LD from aarch64-poky-linux-ld, But the changes made to DLINK_FLAGS to take LD (-fuse-ld=lld) from clang is not making any effects. Can you suggest if anything I had missed or done in wrong.
Thanks
[-- Attachment #2: Type: text/html, Size: 7062 bytes --]
prev parent reply other threads:[~2020-10-30 2:05 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-20 18:44 Overriding of linker in ed2 build system Prabin CA
2020-10-21 14:05 ` [edk2-devel] " Andrew Fish
2020-10-21 14:39 ` Prabin CA
2020-10-21 15:39 ` Andrew Fish
2020-10-28 9:35 ` Prabin CA
2020-10-30 2:04 ` gaoliming [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='005e01d6ae61$10e25f20$32a71d60$@byosoft.com.cn' \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox