summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2013-07-27 22:38:50 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2013-07-27 22:38:50 +0000
commit4aaada36b6426c08cb54e55129d263dc1b7ec24b (patch)
tree33b3464e09536af9a026f0756c195a109e81e9d4
parent8a088919124b14ea377ad3b1cb74da4cb8c1f826 (diff)
downloadbinutils-redhat-4aaada36b6426c08cb54e55129d263dc1b7ec24b.tar.gz
* elf32-vax.c (elf_vax_finish_dynamic_sections): Don't set GOT's
entry size if there is no ELF section data.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-vax.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 9a541df3b5..af1a0c6c32 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
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>:
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 69eab8b9b8..c6a8f8188b 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;
}