diff options
author | Christopher Ferris <cferris@google.com> | 2014-03-18 14:50:09 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2014-03-18 17:34:41 -0700 |
commit | a6e2f9322c47ac02546aa436341fa42afd0000c5 (patch) | |
tree | d159588a6013b962458d7bff15d628ec7d65fcf0 /core/definitions.mk | |
parent | bce52ca5fae5d0062e7622d758a3619f2279c666 (diff) | |
download | build-a6e2f9322c47ac02546aa436341fa42afd0000c5.zip build-a6e2f9322c47ac02546aa436341fa42afd0000c5.tar.gz build-a6e2f9322c47ac02546aa436341fa42afd0000c5.tar.bz2 |
Add a method to leave the symbol table in a library.
When LOCAL_STRIP_MODULE := keep_symbols is set, then the normal strip rules
will be modified so that only the .debug_* sections are removed. The original
symbol table is left alone.
This allows the compilation of certain libraries so that libbacktrace library
can provide meaningful names to functions.
Bug: 12958251
Change-Id: I82bdc304a463012e29086325ccb51163464cb4a9
Diffstat (limited to 'core/definitions.mk')
-rw-r--r-- | core/definitions.mk | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/core/definitions.mk b/core/definitions.mk index 9cbd647..d6cd9d1 100644 --- a/core/definitions.mk +++ b/core/definitions.mk @@ -1327,6 +1327,12 @@ define transform-to-stripped $(hide) $($(PRIVATE_2ND_ARCH_VAR_PREFIX)TARGET_STRIP_COMMAND) endef +define transform-to-stripped-keep-symbols +@mkdir -p $(dir $@) +@echo "target Strip (keep symbols): $(PRIVATE_MODULE) ($@)" +$(hide) $($(PRIVATE_2ND_ARCH_VAR_PREFIX)TARGET_STRIP_KEEP_SYMBOLS_COMMAND) +endef + ########################################################### ## Commands for running gcc to link an executable |