summaryrefslogtreecommitdiffstats
path: root/core/combo/TARGET_linux-arm.mk
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-10-18 14:21:26 -0700
committerNick Kralevich <nnk@google.com>2012-10-19 08:40:56 -0700
commit077007e872413ed2bf30642515a400f1b4238b25 (patch)
tree6c820c214009c816c217d3f6a727e783f50a6903 /core/combo/TARGET_linux-arm.mk
parent942167dab8345c420b205ce9b9b6b4fc779a7583 (diff)
downloadbuild-077007e872413ed2bf30642515a400f1b4238b25.zip
build-077007e872413ed2bf30642515a400f1b4238b25.tar.gz
build-077007e872413ed2bf30642515a400f1b4238b25.tar.bz2
arm: turn on -Wl,--fatal-warnings
Third time's the charm. :-) 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) ===== All code which uses text relocations has either been fixed, or we've temporarily worked around the issue so the code can still compile. Enable --fatal-warnings. This reverts commit 942167dab8345c420b205ce9b9b6b4fc779a7583. Change-Id: I578701692ead7e7cd60d73d2070a5bed366e2c6c
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)