summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2012-08-10 12:51:26 -0700
committerNick Kralevich <nnk@google.com>2012-08-10 13:05:53 -0700
commitb238210c0172e771b1302364273016ad1fabafb8 (patch)
tree5c91bf34ef6e088ad1a0a5ae1ad3e9b94763ba51 /core
parente98b836f261aa822204f5fdbae7cfde6c77dbfba (diff)
downloadbuild-b238210c0172e771b1302364273016ad1fabafb8.zip
build-b238210c0172e771b1302364273016ad1fabafb8.tar.gz
build-b238210c0172e771b1302364273016ad1fabafb8.tar.bz2
arm: add --warn-shared-textrel
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) References: http://www.akkadia.org/drepper/textrelocs.html Change-Id: I3bc818e3ecdb8a4338668a9e816b6dc1081b7557
Diffstat (limited to 'core')
-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 bca442d..71f2d5a 100644
--- a/core/combo/TARGET_linux-arm.mk
+++ b/core/combo/TARGET_linux-arm.mk
@@ -138,6 +138,7 @@ TARGET_GLOBAL_LDFLAGS += \
-Wl,-z,noexecstack \
-Wl,-z,relro \
-Wl,-z,now \
+ -Wl,--warn-shared-textrel \
-Wl,--icf=safe \
$(arch_variant_ldflags)