aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2005-02-21 11:00:44 +0000
committerAlan Modra <amodra@gmail.com>2005-02-21 11:00:44 +0000
commit85e3476f965b07fb5c695d5e099a9b58a16b3609 (patch)
tree07ef1b190ae26f41eb4d654fb430a1d296fcb123 /gdb/elfread.c
parentf364d1ca1d3ef09f5b46f1f34781c3c406dc6ac2 (diff)
downloadgdb-85e3476f965b07fb5c695d5e099a9b58a16b3609.zip
gdb-85e3476f965b07fb5c695d5e099a9b58a16b3609.tar.gz
gdb-85e3476f965b07fb5c695d5e099a9b58a16b3609.tar.bz2
* elfread.c (elf_symtab_read): Discard section syms.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 568d9f4..70a825f 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -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;