aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1993-09-03 16:27:35 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1993-09-03 16:27:35 +0000
commit5ec3ba257bf03f079136883fc9fc6fa260291946 (patch)
treeca66649e82698a6b1c6afc40e80b32928ef5811a /gdb/elfread.c
parent408f6c34c8b7a80ceba76755410d1b440f317e27 (diff)
downloadgdb-5ec3ba257bf03f079136883fc9fc6fa260291946.zip
gdb-5ec3ba257bf03f079136883fc9fc6fa260291946.tar.gz
gdb-5ec3ba257bf03f079136883fc9fc6fa260291946.tar.bz2
* elfread.c (elf_symtab_read): Don't add symbols starting with ".L"
to minimal symbols.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 0c8e050..bab5735 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -278,6 +278,9 @@ elf_symtab_read (abfd, addr, objfile)
{
ms_type = mst_text;
}
+ else if (sym->name[0] == '.' && sym->name[1] == 'L')
+ /* Looks like a compiler-generated label. Skip it. */
+ continue;
else
{
ms_type = mst_file_text;