diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3bd64ab16f..7f31ff58c9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2015-07-18 Kevin Buettner + + * dwarf2read.c (dwarf2_locate_sections): Allow has_section_at_zero + to be set for SEC_ALLOC sections too. + 2015-07-17 Yao Qi * Makefile.in (HFILES_NO_SRCDIR): Add diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 91c6a8feee..f44095683f 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -2241,7 +2241,7 @@ dwarf2_locate_sections (bfd *abfd, asection *sectp, void *vnames) dwarf2_per_objfile->gdb_index.size = bfd_get_section_size (sectp); } - if ((bfd_get_section_flags (abfd, sectp) & SEC_LOAD) + if ((bfd_get_section_flags (abfd, sectp) & (SEC_LOAD | SEC_ALLOC)) && bfd_section_vma (abfd, sectp) == 0) dwarf2_per_objfile->has_section_at_zero = 1; }