From 85e3476f965b07fb5c695d5e099a9b58a16b3609 Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Mon, 21 Feb 2005 11:00:44 +0000 Subject: [PATCH] * elfread.c (elf_symtab_read): Discard section syms. --- gdb/ChangeLog | 4 ++++ gdb/elfread.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 11d22c378a..19b14cd8f0 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2005-02-21 Alan Modra + + * elfread.c (elf_symtab_read): Discard section syms. + 2005-02-21 Andrew Cagney * cli/cli-decode.c (add_set_enum_cmd): Delete function. diff --git a/gdb/elfread.c b/gdb/elfread.c index 568d9f442b..70a825fb42 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; -- 2.34.1