* symfile.c (syms_from_objfile): Don't warn if lowest loadable
section is not a code section.
This commit is contained in:
parent
65f309add0
commit
ff8e85c382
2 changed files with 11 additions and 11 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2008-04-21 Pedro Alves <pedro@codesourcery.com>
|
||||||
|
|
||||||
|
* symfile.c (syms_from_objfile): Don't warn if lowest loadable
|
||||||
|
section is not a code section.
|
||||||
|
|
||||||
2008-04-19 Craig Silverstein <csilvers@google.com>
|
2008-04-19 Craig Silverstein <csilvers@google.com>
|
||||||
|
|
||||||
* NEWS: Add information on compressed debug sections.
|
* NEWS: Add information on compressed debug sections.
|
||||||
|
|
|
@ -821,18 +821,13 @@ syms_from_objfile (struct objfile *objfile,
|
||||||
bfd_map_over_sections (objfile->obfd, find_lowest_section,
|
bfd_map_over_sections (objfile->obfd, find_lowest_section,
|
||||||
&lower_sect);
|
&lower_sect);
|
||||||
if (lower_sect == NULL)
|
if (lower_sect == NULL)
|
||||||
warning (_("no loadable sections found in added symbol-file %s"),
|
{
|
||||||
objfile->name);
|
warning (_("no loadable sections found in added symbol-file %s"),
|
||||||
|
objfile->name);
|
||||||
|
lower_offset = 0;
|
||||||
|
}
|
||||||
else
|
else
|
||||||
if ((bfd_get_section_flags (objfile->obfd, lower_sect) & SEC_CODE) == 0)
|
lower_offset = bfd_section_vma (objfile->obfd, lower_sect);
|
||||||
warning (_("Lowest section in %s is %s at %s"),
|
|
||||||
objfile->name,
|
|
||||||
bfd_section_name (objfile->obfd, lower_sect),
|
|
||||||
paddr (bfd_section_vma (objfile->obfd, lower_sect)));
|
|
||||||
if (lower_sect != NULL)
|
|
||||||
lower_offset = bfd_section_vma (objfile->obfd, lower_sect);
|
|
||||||
else
|
|
||||||
lower_offset = 0;
|
|
||||||
|
|
||||||
/* Calculate offsets for the loadable sections.
|
/* Calculate offsets for the loadable sections.
|
||||||
FIXME! Sections must be in order of increasing loadable section
|
FIXME! Sections must be in order of increasing loadable section
|
||||||
|
|
Loading…
Reference in a new issue