* elf32-vax.c (elf_vax_finish_dynamic_sections): Don't set GOT's

entry size if there is no ELF section data.
This commit is contained in:
Maciej W. Rozycki 2013-07-27 22:38:50 +00:00
parent 1581972d79
commit f6518c488a
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
* elf32-vax.c (elf_vax_finish_dynamic_sections): Don't set GOT's
entry size if there is no ELF section data.
2013-07-27 Maciej W. Rozycki <macro@linux-mips.org>
* elf32-vax.c (elf_vax_check_relocs) <R_VAX_GOT32, R_VAX_PLT32>:

View file

@ -1989,7 +1989,8 @@ elf_vax_finish_dynamic_sections (bfd *output_bfd, struct bfd_link_info *info)
bfd_put_32 (output_bfd, (bfd_vma) 0, sgot->contents + 8);
}
elf_section_data (sgot->output_section)->this_hdr.sh_entsize = 4;
if (elf_section_data (sgot->output_section) != NULL)
elf_section_data (sgot->output_section)->this_hdr.sh_entsize = 4;
return TRUE;
}