diff options
author | Maciej W. Rozycki <macro@linux-mips.org> | 2013-07-28 23:05:18 +0000 |
---|---|---|
committer | Maciej W. Rozycki <macro@linux-mips.org> | 2013-07-28 23:05:18 +0000 |
commit | a505d7ac6e6edeaebd4b79bd2f46a524aaa6303a (patch) | |
tree | 3dfdaec5b0bef0b8394d8a2b2dccd94497a3fa7b /bfd/elf64-hppa.c | |
parent | 0608afa70a9121aac25d261479015d424a8e2df8 (diff) | |
download | gdb-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.c | 2 |
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; |