summaryrefslogtreecommitdiffstats
path: root/core/combo/TARGET_linux-arm.mk
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-10-11 15:01:24 -0700
committerNick Kralevich <nnk@google.com>2012-10-15 11:22:31 -0700
commitedfee7250f072cb148da6de04eacb834366bef38 (patch)
tree8a0eee5edf2e5d544c7454e54a7466aa17c679de /core/combo/TARGET_linux-arm.mk
parent23717baba1ef92e1dfabf1cd005ea26787a18e33 (diff)
downloadbuild-edfee7250f072cb148da6de04eacb834366bef38.zip
build-edfee7250f072cb148da6de04eacb834366bef38.tar.gz
build-edfee7250f072cb148da6de04eacb834366bef38.tar.bz2
arm: turn on -Wl,--fatal-warnings
In b238210c0172e771b1302364273016ad1fabafb8, we added -Wl,--warn-shared-textrel to TARGET_GLOBAL_LDFLAGS. This generated a warning whenever we created a shared library with a text relocation. At the time, we wrote: ===== Emit a warning when the static linker detects a shared library has text relocations. Text relocations make it harder to share pages across processes, and make it harder to use certain memory protection features in, for example, SELinux. This warning will turn into an error in a future change (via --fatal-warnings) ===== We've successfully removed all text relocations from Android's compiled code, so turn on -Wl,--fatal-warnings . Some pre-compiled shared libraries continue to have text relocations, but they will be unaffected by this change. Change-Id: I505ea23120048afc45f62593704fe1d6d26a352c
Diffstat (limited to 'core/combo/TARGET_linux-arm.mk')
-rw-r--r--core/combo/TARGET_linux-arm.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/combo/TARGET_linux-arm.mk b/core/combo/TARGET_linux-arm.mk
index 854037d..4aa8576 100644
--- a/core/combo/TARGET_linux-arm.mk
+++ b/core/combo/TARGET_linux-arm.mk
@@ -138,6 +138,7 @@ TARGET_GLOBAL_LDFLAGS += \
-Wl,-z,relro \
-Wl,-z,now \
-Wl,--warn-shared-textrel \
+ -Wl,--fatal-warnings \
-Wl,--icf=safe \
$(arch_variant_ldflags)