aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Ivanov <dimitry@google.com>2015-03-26 23:49:23 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2015-03-26 23:49:23 +0000
commitcfd794a96d0c4f1d97e54b701b408dafdb514d17 (patch)
treeefda087ca764badef51c25bd4b9df2cf859318f8
parent8f3eb5a4e5dbbac1fb431e40e25eec07ecc24ee8 (diff)
parent797bffb76095c5bf83b486579dab9db7bb4fe09e (diff)
downloadbionic-cfd794a96d0c4f1d97e54b701b408dafdb514d17.tar.gz
Merge "Explain why we need objcopy for the linker"
-rw-r--r--linker/Android.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/linker/Android.mk b/linker/Android.mk
index 81c007f3e..5bdc2f901 100644
--- a/linker/Android.mk
+++ b/linker/Android.mk
@@ -70,7 +70,9 @@ LOCAL_MULTILIB := both
# meaningful name resolution.
LOCAL_STRIP_MODULE := keep_symbols
-# Insert an extra objcopy step to add prefix to symbols.
+# Insert an extra objcopy step to add prefix to symbols. This is needed to prevent gdb
+# looking up symbols in the linker by mistake.
+#
# Note we are using "=" instead of ":=" to defer the evaluation,
# because LOCAL_2ND_ARCH_VAR_PREFIX or linked_module isn't set properly yet at this point.
LOCAL_POST_LINK_CMD = $(hide) $($(LOCAL_2ND_ARCH_VAR_PREFIX)TARGET_OBJCOPY) \