OSDN Git Service

Fix l_addr for the linker
authorDmitriy Ivanov <dimitry@google.com>
Thu, 11 Jun 2015 02:46:19 +0000 (19:46 -0700)
committerDmitriy Ivanov <dimitry@google.com>
Thu, 11 Jun 2015 02:47:26 +0000 (19:47 -0700)
Bug: http://b/21765603
Change-Id: I97710ef2436eac2160e29ba3e4521f6e63a1907c

linker/linker.cpp

index 513ffd6..a959394 100644 (file)
@@ -3084,7 +3084,7 @@ static soinfo* linker_soinfo_for_gdb = nullptr;
 static void init_linker_info_for_gdb(ElfW(Addr) linker_base) {
   linker_soinfo_for_gdb = new (linker_soinfo_for_gdb_buf) soinfo(LINKER_PATH, nullptr, 0, 0);
 
-  linker_soinfo_for_gdb->base = linker_base;
+  linker_soinfo_for_gdb->load_bias = linker_base;
 
   /*
    * Set the dynamic field in the link map otherwise gdb will complain with