Index: ChangeLog =================================================================== RCS file: /cvs/src/src/gold/ChangeLog,v retrieving revision 1.843 diff -u -u -p -r1.843 ChangeLog --- ChangeLog 19 Oct 2011 15:05:58 -0000 1.843 +++ ChangeLog 19 Oct 2011 15:50:07 -0000 @@ -1,5 +1,12 @@ 2011-10-19 Ian Lance Taylor + PR gold/13163 + * script-sections.cc + (Output_section_element_dot_assignment::needs_output_section): New + function. + +2011-10-19 Ian Lance Taylor + PR gold/13204 * layout.cc (Layout::segment_precedes): Don't assert failure if a --section-start option was seen. Index: script-sections.cc =================================================================== RCS file: /cvs/src/src/gold/script-sections.cc,v retrieving revision 1.53 diff -u -u -p -r1.53 script-sections.cc --- script-sections.cc 29 Jun 2011 00:39:54 -0000 1.53 +++ script-sections.cc 19 Oct 2011 15:50:07 -0000 @@ -892,6 +892,12 @@ class Output_section_element_dot_assignm : 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,