* object.cc (Sized_relobj_file::include_section_group): Add
authorIan Lance Taylor <ian@airs.com>
Tue, 5 Jul 2011 20:38:53 +0000 (20:38 +0000)
committerIan Lance Taylor <ian@airs.com>
Tue, 5 Jul 2011 20:38:53 +0000 (20:38 +0000)
information to comment about signature location.

gold/ChangeLog
gold/object.cc

index fdedd86e8152cd023a7f4910ca612418b6a70f14..819f2509198d8758c060c59d2c16247b4f3aa82e 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-05  Ian Lance Taylor  <iant@google.com>
+
+       * object.cc (Sized_relobj_file::include_section_group): Add
+       information to comment about signature location.
+
 2011-07-02  Ian Lance Taylor  <iant@google.com>
 
        PR gold/12957
index d3835df900011d46834d306d4bc2806224984dc9..6f68ed321e9d8fc369d6577564fb6e8c9faf3a57 100644 (file)
@@ -748,10 +748,11 @@ Sized_relobj_file<size, big_endian>::include_section_group(
   // just like ordinary sections.
   elfcpp::Elf_Word flags = elfcpp::Swap<32, big_endian>::readval(pword);
 
-  // Look up the group signature, which is the name of a symbol.  This
-  // is a lot of effort to go to to read a string.  Why didn't they
-  // just have the group signature point into the string table, rather
-  // than indirect through a symbol?
+  // Look up the group signature, which is the name of a symbol.  ELF
+  // uses a symbol name because some group signatures are long, and
+  // the name is generally already in the symbol table, so it makes
+  // sense to put the long string just once in .strtab rather than in
+  // both .strtab and .shstrtab.
 
   // Get the appropriate symbol table header (this will normally be
   // the single SHT_SYMTAB section, but in principle it need not be).
This page took 0.032756 seconds and 4 git commands to generate.