OSDN Git Service

Update a comment for init_linker_info_for_gdb
authorDimitry Ivanov <dimitry@google.com>
Wed, 17 Feb 2016 22:13:06 +0000 (14:13 -0800)
committerDimitry Ivanov <dimitry@google.com>
Wed, 17 Feb 2016 22:13:06 +0000 (14:13 -0800)
Change-Id: I8e2895ecfcc6f77a180c3735342afc93be5923d3

linker/linker.cpp

index a032068..b013dca 100644 (file)
@@ -3904,8 +3904,7 @@ static soinfo* linker_soinfo_for_gdb = nullptr;
  * Without this, gdb has trouble locating the linker's ".text"
  * and ".plt" sections. Gdb could also potentially use this to
  * relocate the offset of our exported 'rtld_db_dlactivity' symbol.
- * Don't use soinfo_alloc(), because the linker shouldn't
- * be on the soinfo list.
+ * Note that the linker shouldn't be on the soinfo list.
  */
 static void init_linker_info_for_gdb(ElfW(Addr) linker_base) {
   linker_soinfo_for_gdb = new (linker_soinfo_for_gdb_buf) soinfo(nullptr, LINKER_PATH,