Index: gdb/symfile.c =================================================================== RCS file: /cvs/src/src/gdb/symfile.c,v retrieving revision 1.58 diff -u -3 -r1.58 symfile.c --- gdb/symfile.c 29 Mar 2002 01:09:27 -0000 1.58 +++ gdb/symfile.c 22 Apr 2002 13:05:51 -0000 @@ -522,10 +522,14 @@ .rodata sections. */ sect = bfd_get_section_by_name (objfile->obfd, ".text"); + if (!sect) + sect = bfd_get_first_code_section (objfile->obfd); if (sect) objfile->sect_index_text = sect->index; sect = bfd_get_section_by_name (objfile->obfd, ".data"); + if (!sect) + sect = bfd_get_first_data_section (objfile->obfd) ; if (sect) objfile->sect_index_data = sect->index;