* layout.cc (Layout::set_relocatable_section_offsets): Don't
allocate space in file for BSS sections.
2013-04-15 Cary Coutant <ccoutant@google.com>
+ * layout.cc (Layout::set_relocatable_section_offsets): Don't
+ allocate space in file for BSS sections.
+
+2013-04-15 Cary Coutant <ccoutant@google.com>
+
* script-sections.cc (Orphan_output_section): Reset address
to zero after each orphaned section for relocatable links.
(*p)->set_address(0);
(*p)->set_file_offset(off);
(*p)->finalize_data_size();
- off += (*p)->data_size();
+ if ((*p)->type() != elfcpp::SHT_NOBITS)
+ off += (*p)->data_size();
(*p)->set_out_shndx(*pshndx);
++*pshndx;