From c80bbb46b1cb72a281acb5c2a8f337e9cf7592d4 Mon Sep 17 00:00:00 2001 From: Ivan Lozano Date: Mon, 2 Mar 2020 16:48:15 -0500 Subject: [PATCH] Add -z separate-code to default ARM64 device flags Removing XOM had the side effect of removing "-z separate-code", which was needed to override a new default after a recent toolchain update. This led to some performance regressions in some tests. For now, add this flag to the global arm64 device flags to return to the previous behavior. Bug: 150506341 Test: m -j Change-Id: I54787954141d133e245dfd259a37bf4c3c8e7caa --- cc/config/arm64_device.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cc/config/arm64_device.go b/cc/config/arm64_device.go index 1ca1656d0..19aedd99d 100644 --- a/cc/config/arm64_device.go +++ b/cc/config/arm64_device.go @@ -39,6 +39,7 @@ var ( arm64Ldflags = []string{ "-Wl,-m,aarch64_elf64_le_vec", "-Wl,--hash-style=gnu", + "-Wl,-z,separate-code", "-fuse-ld=gold", "-Wl,--icf=safe", }