From 2c3b926ab361b5e2d9f66ebd8c99344007cd2c4e Mon Sep 17 00:00:00 2001 From: Than McIntosh Date: Tue, 15 Dec 2015 09:22:06 -0500 Subject: [PATCH] Re-enable gold linker for aarch64. Turn back on ld.gold and W-l,--icf=safe for aarch64, now that the prebuilt ld.gold has been updated with support for reloc 311/312 (fixed upstream, see https://sourceware.org/bugzilla/show_bug.cgi?id=19042) Bug: 25642296 Bug: 26153840 Change-Id: Idceb357a48d9da4eec38ab8f2103245d500622ae --- core/combo/TARGET_linux-arm64.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/combo/TARGET_linux-arm64.mk b/core/combo/TARGET_linux-arm64.mk index fbf8ab09a0..bc89bc90dc 100644 --- a/core/combo/TARGET_linux-arm64.mk +++ b/core/combo/TARGET_linux-arm64.mk @@ -115,6 +115,8 @@ TARGET_GLOBAL_LDFLAGS += \ -Wl,-maarch64linux \ -Wl,--hash-style=gnu \ -Wl,--fix-cortex-a53-843419 \ + -fuse-ld=gold \ + -Wl,--icf=safe \ -Wl,--no-undefined-version \ $(arch_variant_ldflags)