2003-06-26 Elena Zannoni <ezannoni@redhat.com>

* dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
	sections.
This commit is contained in:
Elena Zannoni 2003-06-26 21:20:39 +00:00
parent 9c14acb80f
commit 3799ccc6c6
2 changed files with 12 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2003-06-26 Elena Zannoni <ezannoni@redhat.com>
* dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
sections.
2003-06-26 Michael Chastain <mec@shout.net>
* config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,

View File

@ -1021,9 +1021,13 @@ dwarf2_locate_sections (bfd *ignore_abfd, asection *sectp, void *ignore_ptr)
}
else if (STREQ (sectp->name, EH_FRAME_SECTION))
{
dwarf_eh_frame_offset = sectp->filepos;
dwarf_eh_frame_size = bfd_get_section_size_before_reloc (sectp);
dwarf_eh_frame_section = sectp;
flagword aflag = bfd_get_section_flags (ignore_abfd, sectp);
if (aflag & SEC_HAS_CONTENTS)
{
dwarf_eh_frame_offset = sectp->filepos;
dwarf_eh_frame_size = bfd_get_section_size_before_reloc (sectp);
dwarf_eh_frame_section = sectp;
}
}
else if (STREQ (sectp->name, RANGES_SECTION))
{