From cc3bfcee610eb9430ad491e8cbd0907a88441525 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 12 Jun 1999 13:08:29 +0000 Subject: [PATCH] * elf32-mips.c (mips_elf32_section_processing): Permit a SHT_MIPS_REGINFO section to have a size of 0. --- bfd/ChangeLog | 5 +++++ bfd/elf32-mips.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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]; -- 2.30.2