summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Kralevich <nnk@google.com>2014-05-07 16:56:42 -0700
committerNick Kralevich <nnk@google.com>2014-05-07 23:59:11 +0000
commit7d7f5e58db76fb2c437e6a6fb0f196004be604a8 (patch)
tree97a954835f87fc2f3446bb01b7473a9e65f07b47
parentbe6b3ad1f00ef0741b534dcc26bd46d124cd222a (diff)
downloadsystem_core-7d7f5e58db76fb2c437e6a6fb0f196004be604a8.tar.gz
system_core-7d7f5e58db76fb2c437e6a6fb0f196004be604a8.tar.bz2
system_core-7d7f5e58db76fb2c437e6a6fb0f196004be604a8.zip
Make lmkd dynamically linked
Statically linked binaries cannot take advantage of ASLR, making them less secure. In addition, statically linked binaries consume more ram, because shared libraries cannot be reused. executable size before: 87728 executable size after: 13656 Change-Id: I9d02d865f9beeaaaadcd5009f64ac015931d4b11
-rw-r--r--lmkd/Android.mk3
1 files changed, 1 insertions, 2 deletions
diff --git a/lmkd/Android.mk b/lmkd/Android.mk
index 02d2754ca..2dd8af27c 100644
--- a/lmkd/Android.mk
+++ b/lmkd/Android.mk
@@ -2,8 +2,7 @@ LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := lmkd.c
-LOCAL_STATIC_LIBRARIES := libcutils liblog libm libc
-LOCAL_FORCE_STATIC_EXECUTABLE := true
+LOCAL_SHARED_LIBRARIES := libcutils liblog libm libc
LOCAL_CFLAGS := -Werror
LOCAL_MODULE := lmkd