From: Maciej W. Rozycki Date: Sun, 28 Jul 2013 23:05:18 +0000 (+0000) Subject: * elf64-hppa.c (elf64_hppa_finish_dynamic_sections) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a505d7ac6e6edeaebd4b79bd2f46a524aaa6303a;p=binutils-gdb.git * elf64-hppa.c (elf64_hppa_finish_dynamic_sections) : Return unsuccessfully if there's no `.data' section. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 88b9448b367..62cb2707522 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +2013-07-28 Maciej W. Rozycki + + * elf64-hppa.c (elf64_hppa_finish_dynamic_sections) + : Return unsuccessfully if there's no `.data' + section. + 2013-07-27 Andrew Pinski * elfnn-aarch64.c (elfNN_aarch64_check_relocs): diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c index aff87f0d178..044ada5d39d 100644 --- a/bfd/elf64-hppa.c +++ b/bfd/elf64-hppa.c @@ -2524,6 +2524,8 @@ elf64_hppa_finish_dynamic_sections (bfd *output_bfd, area at the start of the .data section. So all we have to to is find the start of the .data section. */ s = bfd_get_section_by_name (output_bfd, ".data"); + if (!s) + return FALSE; dyn.d_un.d_ptr = s->vma; bfd_elf64_swap_dyn_out (output_bfd, &dyn, dyncon); break;