aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-mips.c
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 /bfd/elf32-mips.c
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.
Diffstat (limited to 'bfd/elf32-mips.c')
-rw-r--r--bfd/elf32-mips.c3
1 files changed, 2 insertions, 1 deletions
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];