aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-mips.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r--bfd/elf32-mips.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c
index 93a2466..b4de2e9 100644
--- a/bfd/elf32-mips.c
+++ b/bfd/elf32-mips.c
@@ -2750,7 +2750,8 @@ mips_elf32_section_processing (abfd, hdr)
bfd *abfd;
Elf32_Internal_Shdr *hdr;
{
- if (hdr->sh_type == SHT_MIPS_REGINFO)
+ if (hdr->sh_type == SHT_MIPS_REGINFO
+ && hdr->sh_size > 0)
{
bfd_byte buf[4];