aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-06-12 13:08:29 +0000
committerIan Lance Taylor <ian@airs.com>1999-06-12 13:08:29 +0000
commitcc3bfcee610eb9430ad491e8cbd0907a88441525 (patch)
tree04888f659c11a517b737dd3d5d114542e1c763c3
parent7a50d4ac66c5cf5eab0e865f15d8fc4ae32d1c0d (diff)
downloadgdb-cc3bfcee610eb9430ad491e8cbd0907a88441525.zip
gdb-cc3bfcee610eb9430ad491e8cbd0907a88441525.tar.gz
gdb-cc3bfcee610eb9430ad491e8cbd0907a88441525.tar.bz2
* elf32-mips.c (mips_elf32_section_processing): Permit a
SHT_MIPS_REGINFO section to have a size of 0.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-mips.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 92876ac..7670efc 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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.
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];