diff options
Diffstat (limited to 'gold/reloc.cc')
-rw-r--r-- | gold/reloc.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gold/reloc.cc b/gold/reloc.cc index 97ed337..dacab35 100644 --- a/gold/reloc.cc +++ b/gold/reloc.cc @@ -322,6 +322,9 @@ Sized_relobj_file<size, big_endian>::do_read_relocs(Read_relocs_data* rd) off_t sh_size = shdr.get_sh_size(); + if (sh_size == 0) + continue; + unsigned int reloc_size; if (sh_type == elfcpp::SHT_REL) reloc_size = elfcpp::Elf_sizes<size>::rel_size; |