aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-vax.c
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
commitf6518c488a569b2c32c062f16412ffbf869bbbe3 (patch)
treec03c236d11eade9e593712127fdb03f04409cc84 /bfd/elf32-vax.c
parent1581972d79ebd85e077a6beb849d6db6d4c2aac9 (diff)
downloadgdb-f6518c488a569b2c32c062f16412ffbf869bbbe3.zip
gdb-f6518c488a569b2c32c062f16412ffbf869bbbe3.tar.gz
gdb-f6518c488a569b2c32c062f16412ffbf869bbbe3.tar.bz2
* elf32-vax.c (elf_vax_finish_dynamic_sections): Don't set GOT's
entry size if there is no ELF section data.
Diffstat (limited to 'bfd/elf32-vax.c')
-rw-r--r--bfd/elf32-vax.c3
1 files changed, 2 insertions, 1 deletions
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;
}