aboutsummaryrefslogtreecommitdiff
path: root/gold/arm.cc
diff options
context:
space:
mode:
authorDoug Kwan <dougkwan@google.com>2011-06-24 16:40:34 +0000
committerDoug Kwan <dougkwan@google.com>2011-06-24 16:40:34 +0000
commita60af0db8811f4ea6f5ac98322121ac541eb12e7 (patch)
tree47ed8acf7c5845fc9fd87e96e84cc12f737ab57e /gold/arm.cc
parente3a9940106f25fd4054b6cc580b474f5eef22778 (diff)
downloadgdb-a60af0db8811f4ea6f5ac98322121ac541eb12e7.zip
gdb-a60af0db8811f4ea6f5ac98322121ac541eb12e7.tar.gz
gdb-a60af0db8811f4ea6f5ac98322121ac541eb12e7.tar.bz2
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.
Diffstat (limited to 'gold/arm.cc')
-rw-r--r--gold/arm.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/gold/arm.cc b/gold/arm.cc
index e36b3ab..98e82b9 100644
--- a/gold/arm.cc
+++ b/gold/arm.cc
@@ -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()));
}