summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-01-23 10:43:58 -0800
committerElliott Hughes <enh@google.com>2015-01-23 10:43:58 -0800
commit611f95689e1012283bd11917003d3740d3ce532d (patch)
treefca80da24d79b263525771f9f8350da23db48cfa
parentbb3b1303e1167a662218c9686977b379964e0072 (diff)
downloadbionic-611f95689e1012283bd11917003d3740d3ce532d.zip
bionic-611f95689e1012283bd11917003d3740d3ce532d.tar.gz
bionic-611f95689e1012283bd11917003d3740d3ce532d.tar.bz2
Add a log message to make the transition from linker to user code clear.
Handy when looking at strace output for seeing "where does my code start?", though you'll need to set LD_DEBUG=1 (or greater) and constructors will already have run (but you can set LD_DEBUG to a higher value to track that). Change-Id: I82d53a7123b39febf5b2a956de83c8a30f229651
-rw-r--r--linker/linker.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/linker/linker.cpp b/linker/linker.cpp
index df6a4e2..df8e52e 100644
--- a/linker/linker.cpp
+++ b/linker/linker.cpp
@@ -2675,6 +2675,8 @@ extern "C" ElfW(Addr) __linker_init(void* raw_args) {
protect_data(PROT_READ);
+ INFO("[ jumping to _start ]");
+
// Return the address that the calling assembly stub should jump to.
return start_address;
}