2011-06-24 Doug Kwan <dougkwan@google.com>

* arm.cc (Arm_output_section::append_text_sections_to_list): Do not
	skip empty text sections.
	* testsuite/arm_exidx_test.s: Test handling of an empty text section.
This commit is contained in:
Doug Kwan
2011-06-24 16:40:34 +00:00
parent e3a9940106
commit a60af0db88
3 changed files with 21 additions and 3 deletions

View File

@@ -5803,8 +5803,7 @@ Arm_output_section<big_endian>::append_text_sections_to_list(
{
// We only care about plain or relaxed input sections. We also
// ignore any merged sections.
if ((p->is_input_section() || p->is_relaxed_input_section())
&& p->data_size() != 0)
if (p->is_input_section() || p->is_relaxed_input_section())
list->push_back(Text_section_list::value_type(p->relobj(),
p->shndx()));
}