OSDN Git Service

* elf32-mips.c (mips_elf32_section_processing): Permit a
authorian <ian>
Sat, 12 Jun 1999 13:08:27 +0000 (13:08 +0000)
committerian <ian>
Sat, 12 Jun 1999 13:08:27 +0000 (13:08 +0000)
SHT_MIPS_REGINFO section to have a size of 0.

bfd/ChangeLog
bfd/elf32-mips.c

index 92876ac..7670efc 100644 (file)
@@ -1,3 +1,8 @@
+1999-06-12  Ian Lance Taylor  <ian@zembu.com>
+
+       * 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  <obrien@freebsd.org>
 
        * config.bfd (alpha*-*-freebsd*): New target.
index 93a2466..b4de2e9 100644 (file)
@@ -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];