* elf32-mips.c (mips_elf32_section_processing): Permit a

SHT_MIPS_REGINFO section to have a size of 0.
This commit is contained in:
Ian Lance Taylor 1999-06-12 13:08:29 +00:00
parent 7a50d4ac66
commit cc3bfcee61
2 changed files with 7 additions and 1 deletions

View 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> 1999-06-12 David O'Brien <obrien@freebsd.org>
* config.bfd (alpha*-*-freebsd*): New target. * config.bfd (alpha*-*-freebsd*): New target.

View File

@ -2750,7 +2750,8 @@ mips_elf32_section_processing (abfd, hdr)
bfd *abfd; bfd *abfd;
Elf32_Internal_Shdr *hdr; 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]; bfd_byte buf[4];