summaryrefslogtreecommitdiffstats
path: root/core/combo/TARGET_linux-x86_64.mk
diff options
context:
space:
mode:
authorDehao Chen <dehao@google.com>2015-01-14 11:21:22 -0800
committerDehao Chen <dehao@google.com>2015-01-15 23:09:35 +0000
commit734de7a8b4deec3ff79f4e5369490d76b2de44b5 (patch)
treeff5a19d904f966e9ce384bd922d8a9af2976b5f9 /core/combo/TARGET_linux-x86_64.mk
parent64606bd5b0b702b7f6d7fd1088486b5380ccc25f (diff)
downloadbuild-734de7a8b4deec3ff79f4e5369490d76b2de44b5.zip
build-734de7a8b4deec3ff79f4e5369490d76b2de44b5.tar.gz
build-734de7a8b4deec3ff79f4e5369490d76b2de44b5.tar.bz2
Emit unique linker buildid in all binaries.
We want to store the symbol information for all android binaries in a global database. * We ingest unstripped binaries into the global database * When we collect address data from device (e.g. instruction pointer address), we want to lookup its symbol information through the global database. The key of the mapping is a unique build id, which is the same between binaries on device (stripped) and unstripped binaries. After applying this patch, the system.img size increases by 0.0047% (16.3KB). Change-Id: Id92faf2951f43a30947e8d2b690c1af6bf7e3f54
Diffstat (limited to 'core/combo/TARGET_linux-x86_64.mk')
-rw-r--r--core/combo/TARGET_linux-x86_64.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/combo/TARGET_linux-x86_64.mk b/core/combo/TARGET_linux-x86_64.mk
index 6581f64..d92e974 100644
--- a/core/combo/TARGET_linux-x86_64.mk
+++ b/core/combo/TARGET_linux-x86_64.mk
@@ -127,6 +127,7 @@ TARGET_GLOBAL_LDFLAGS += -m64
TARGET_GLOBAL_LDFLAGS += -Wl,-z,noexecstack
TARGET_GLOBAL_LDFLAGS += -Wl,-z,relro -Wl,-z,now
+TARGET_GLOBAL_LDFLAGS += -Wl,--build-id=md5
TARGET_GLOBAL_LDFLAGS += -Wl,--warn-shared-textrel
TARGET_GLOBAL_LDFLAGS += -Wl,--fatal-warnings
TARGET_GLOBAL_LDFLAGS += -Wl,--gc-sections