* c-valprint.c (c_value_print): Fix up some formatting. Use
[deliverable/binutils-gdb.git] / gdb / elfread.c
index 99ae93c837a17bd96a2343cc7ed47166c5622959..70a825fb42f88f0cdcd45ad11e7740a92c3c847a 100644 (file)
@@ -1,7 +1,7 @@
 /* Read ELF (Executable and Linking Format) object files for GDB.
 
    Copyright 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
+   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
 
    Written by Fred Fish at Cygnus Support.
 
@@ -254,6 +254,8 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
                              &objfile->objfile_obstack);
 #endif
            }
+         else if (sym->flags & BSF_SECTION_SYM)
+           continue;
          else if (sym->flags & (BSF_GLOBAL | BSF_LOCAL | BSF_WEAK))
            {
              struct minimal_symbol *msym;
@@ -383,7 +385,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
                              if (filesym == NULL)
                                {
                                  complaint (&symfile_complaints,
-                                            "elf/stab section information %s without a preceding file symbol",
+                                            _("elf/stab section information %s without a preceding file symbol"),
                                             sym->name);
                                }
                              else
@@ -394,7 +396,7 @@ elf_symtab_read (struct objfile *objfile, int dynamic)
                            }
                          if (sectinfo->sections[special_local_sect] != 0)
                            complaint (&symfile_complaints,
-                                      "duplicated elf/stab section information for %s",
+                                      _("duplicated elf/stab section information for %s"),
                                       sectinfo->filename);
                          /* BFD symbols are section relative.  */
                          symaddr = sym->value + sym->section->vma;
@@ -704,7 +706,7 @@ elfstab_offset_sections (struct objfile *objfile, struct partial_symtab *pst)
   if (maybe == 0 && questionable != 0)
     {
       complaint (&symfile_complaints,
-                "elf/stab section information questionable for %s", filename);
+                _("elf/stab section information questionable for %s"), filename);
       maybe = questionable;
     }
 
@@ -723,7 +725,7 @@ elfstab_offset_sections (struct objfile *objfile, struct partial_symtab *pst)
   /* We were unable to find any offsets for this file.  Complain.  */
   if (dbx->stab_section_info)  /* If there *is* any info, */
     complaint (&symfile_complaints,
-              "elf/stab section information missing for %s", filename);
+              _("elf/stab section information missing for %s"), filename);
 }
 \f
 /* Register that we are able to handle ELF object file formats.  */
This page took 0.025092 seconds and 4 git commands to generate.