From: Maciej W. Rozycki Date: Sat, 27 Jul 2013 22:38:50 +0000 (+0000) Subject: * elf32-vax.c (elf_vax_finish_dynamic_sections): Don't set GOT's X-Git-Tag: sid-snapshot-20130801~36 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6518c488a569b2c32c062f16412ffbf869bbbe3;p=platform%2Fupstream%2Fbinutils.git * elf32-vax.c (elf_vax_finish_dynamic_sections): Don't set GOT's entry size if there is no ELF section data. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9a541df..af1a0c6 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2013-07-27 Maciej W. Rozycki + * 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 + * elf32-vax.c (elf_vax_check_relocs) : Don't check symbol visibility here. Remove a check already asserted for. diff --git a/bfd/elf32-vax.c b/bfd/elf32-vax.c index 69eab8b..c6a8f81 100644 --- a/bfd/elf32-vax.c +++ b/bfd/elf32-vax.c @@ -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; }