* elf32-mips.c (mips_elf32_section_processing): Permit a
authorIan Lance Taylor <ian@airs.com>
Sat, 12 Jun 1999 13:08:29 +0000 (13:08 +0000)
committerIan Lance Taylor <ian@airs.com>
Sat, 12 Jun 1999 13:08:29 +0000 (13:08 +0000)
SHT_MIPS_REGINFO section to have a size of 0.

bfd/ChangeLog
bfd/elf32-mips.c

index 92876ac8891b1baca384e32f765f791ee3567d42..7670efced690ac550ccf1c4ca449fcd637e0be10 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 93a24660f80ad688945c6fae6c6b4867016fffac..b4de2e93f1d6bc6e0e9a5159b800e8b97c664e18 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];