From: Ian Lance Taylor Date: Sat, 12 Jun 1999 13:08:29 +0000 (+0000) Subject: * elf32-mips.c (mips_elf32_section_processing): Permit a X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cc3bfcee610eb9430ad491e8cbd0907a88441525;p=binutils-gdb.git * elf32-mips.c (mips_elf32_section_processing): Permit a SHT_MIPS_REGINFO section to have a size of 0. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 92876ac8891..7670efced69 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +1999-06-12 Ian Lance Taylor + + * elf32-mips.c (mips_elf32_section_processing): Permit a + SHT_MIPS_REGINFO section to have a size of 0. + 1999-06-12 David O'Brien * config.bfd (alpha*-*-freebsd*): New target. diff --git a/bfd/elf32-mips.c b/bfd/elf32-mips.c index 93a24660f80..b4de2e93f1d 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];