* elfread.c (elf_symtab_read): Skip symbols which BFD considers
authorDaniel Jacobowitz <drow@false.org>
Tue, 21 Feb 2006 20:38:48 +0000 (20:38 +0000)
committerDaniel Jacobowitz <drow@false.org>
Tue, 21 Feb 2006 20:38:48 +0000 (20:38 +0000)
special.

gdb/ChangeLog
gdb/elfread.c

index 514026f51f776d4573959dfcaaea975a85fb19bf..4fd194cf644225a391c0bc472b7dda5424dda13b 100644 (file)
@@ -1,3 +1,8 @@
+2006-02-21  Daniel Jacobowitz  <dan@codesourcery.com>
+
+        * elfread.c (elf_symtab_read): Skip symbols which BFD considers
+       special.
+
 2006-02-21  Andrew Stubbs  <andrew.stubbs@st.com>
 
        * defs.h (directory_switch): Add prototype.
index 575b088092e1a319f6192a27e5fae3e1c92da21b..7b4d6d74b4f29da99f6cd42416bac22886521281 100644 (file)
@@ -1,7 +1,7 @@
 /* Read ELF (Executable and Linking Format) object files for GDB.
 
    Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
+   2000, 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
 
    Written by Fred Fish at Cygnus Support.
 
@@ -174,6 +174,12 @@ elf_symtab_read (struct objfile *objfile, int dynamic,
          continue;
        }
 
+      /* Skip "special" symbols, e.g. ARM mapping symbols.  These are
+        symbols which do not correspond to objects in the symbol table,
+        but have some other target-specific meaning.  */
+      if (bfd_is_target_special_symbol (objfile->obfd, sym))
+       continue;
+
       offset = ANOFFSET (objfile->section_offsets, sym->section->index);
       if (dynamic
          && sym->section == &bfd_und_section
This page took 0.028162 seconds and 4 git commands to generate.