PR gold/13163
authorIan Lance Taylor <ian@airs.com>
Wed, 19 Oct 2011 15:51:00 +0000 (15:51 +0000)
committerIan Lance Taylor <ian@airs.com>
Wed, 19 Oct 2011 15:51:00 +0000 (15:51 +0000)
* script-sections.cc
(Output_section_element_dot_assignment::needs_output_section): New
function.

gold/ChangeLog
gold/script-sections.cc

index 68572441b1aa557e31f60eb4c0f8d052fa468b7d..d844b4001f831494c28925317360ee364598937f 100644 (file)
@@ -1,3 +1,10 @@
+2011-10-19  Ian Lance Taylor  <iant@google.com>
+
+       PR gold/13163
+       * script-sections.cc
+       (Output_section_element_dot_assignment::needs_output_section): New
+       function.
+
 2011-10-19  Ian Lance Taylor  <iant@google.com>
 
        PR gold/13204
index 1fad88dd81d8b4193deeec2b3a72aaac19b6e8c8..eba6b9d71e2abe2d30766c91383882b9d0e80b47 100644 (file)
@@ -892,6 +892,12 @@ class Output_section_element_dot_assignment : public Output_section_element
     : val_(val)
   { }
 
+  // An assignment to dot within an output section is enough to force
+  // the output section to exist.
+  bool
+  needs_output_section() const
+  { return true; }
+
   // Finalize the symbol.
   void
   finalize_symbols(Symbol_table* symtab, const Layout* layout,