aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf64-hppa.c
diff options
context:
space:
mode:
authorMaciej W. Rozycki <macro@linux-mips.org>2013-07-28 23:05:18 +0000
committerMaciej W. Rozycki <macro@linux-mips.org>2013-07-28 23:05:18 +0000
commita505d7ac6e6edeaebd4b79bd2f46a524aaa6303a (patch)
tree3dfdaec5b0bef0b8394d8a2b2dccd94497a3fa7b /bfd/elf64-hppa.c
parent0608afa70a9121aac25d261479015d424a8e2df8 (diff)
downloadgdb-a505d7ac6e6edeaebd4b79bd2f46a524aaa6303a.zip
gdb-a505d7ac6e6edeaebd4b79bd2f46a524aaa6303a.tar.gz
gdb-a505d7ac6e6edeaebd4b79bd2f46a524aaa6303a.tar.bz2
* elf64-hppa.c (elf64_hppa_finish_dynamic_sections)
<DT_HP_LOAD_MAP>: Return unsuccessfully if there's no `.data' section.
Diffstat (limited to 'bfd/elf64-hppa.c')
-rw-r--r--bfd/elf64-hppa.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf64-hppa.c b/bfd/elf64-hppa.c
index aff87f0..044ada5 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;