From 78e5ee0b8d79305028139c22e37c0caf0dc9e74f Mon Sep 17 00:00:00 2001 From: Ivan Lozano Date: Thu, 9 Apr 2020 09:40:50 -0400 Subject: [PATCH] Remove rust execute-only memory linker flag. With kernel support being removed for execute-only memory layouts, remove support for XOM until there's kernel support again. Bug: 153457617 Test: Rust binaries no longer have execute-only text sections. Change-Id: I19cfb5b347a1f44394a619e17bb0c057c09e76a9 --- rust/config/arm64_device.go | 1 - 1 file changed, 1 deletion(-) diff --git a/rust/config/arm64_device.go b/rust/config/arm64_device.go index 60796d8d8..180fd8ba0 100644 --- a/rust/config/arm64_device.go +++ b/rust/config/arm64_device.go @@ -27,7 +27,6 @@ var ( "-Wl,--icf=safe", "-Wl,-z,max-page-size=4096", - "-Wl,--execute-only", "-Wl,-z,separate-code", }