diff options
Diffstat (limited to 'gold/icf.cc')
-rw-r--r-- | gold/icf.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gold/icf.cc b/gold/icf.cc index a60db7abc8d..54af4126696 100644 --- a/gold/icf.cc +++ b/gold/icf.cc @@ -973,6 +973,8 @@ Icf::find_identical_sections(const Input_objects* input_objects, for (unsigned int i = 0; i < (*p)->shnum(); ++i) { + if ((*p)->section_size(i) == 0) + continue; const std::string section_name = (*p)->section_name(i); if (!is_section_foldable_candidate(section_name)) { |