aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2008-04-21 14:25:16 +0000
committerPedro Alves <palves@redhat.com>2008-04-21 14:25:16 +0000
commitff8e85c38271e705bc3e77c1992e7fe8e0fda60b (patch)
tree900359913313f24b2b67b597f518028ef606910b /gdb/symfile.c
parent65f309add0b667263688e61d6d704e02006cd690 (diff)
downloadgdb-ff8e85c38271e705bc3e77c1992e7fe8e0fda60b.zip
gdb-ff8e85c38271e705bc3e77c1992e7fe8e0fda60b.tar.gz
gdb-ff8e85c38271e705bc3e77c1992e7fe8e0fda60b.tar.bz2
* symfile.c (syms_from_objfile): Don't warn if lowest loadable
section is not a code section.
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 5e554fe..3bbd1c3 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -821,18 +821,13 @@ syms_from_objfile (struct objfile *objfile,
bfd_map_over_sections (objfile->obfd, find_lowest_section,
&lower_sect);
if (lower_sect == NULL)
- warning (_("no loadable sections found in added symbol-file %s"),
- objfile->name);
- else
- if ((bfd_get_section_flags (objfile->obfd, lower_sect) & SEC_CODE) == 0)
- 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);
+ {
+ warning (_("no loadable sections found in added symbol-file %s"),
+ objfile->name);
+ lower_offset = 0;
+ }
else
- lower_offset = 0;
+ lower_offset = bfd_section_vma (objfile->obfd, lower_sect);
/* Calculate offsets for the loadable sections.
FIXME! Sections must be in order of increasing loadable section