aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-07-26 22:22:38 +0000
committerStan Shebs <shebs@codesourcery.com>1994-07-26 22:22:38 +0000
commitd54b2c5069879da2f75488bd259839ea01824348 (patch)
tree5cf09d6b8a85dfadb9144f3cc574e50081f1f300 /gdb/elfread.c
parentf68880ead99e2437448f37bcb9963f91e753c80b (diff)
downloadgdb-d54b2c5069879da2f75488bd259839ea01824348.zip
gdb-d54b2c5069879da2f75488bd259839ea01824348.tar.gz
gdb-d54b2c5069879da2f75488bd259839ea01824348.tar.bz2
Tue Jul 26 18:20:46 1994 Paul Flinders (ptf@smee)
* elfread.c (elf_symtab_read): Discard compiler labels generated by the Solaris 2.1/Intel SunPro compiler.
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index 67ce608..2a9c392 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -386,7 +386,10 @@ elf_symtab_read (abfd, addr, objfile, dynamic)
{
ms_type = mst_text;
}
- else if (sym->name[0] == '.' && sym->name[1] == 'L')
+ else if ((sym->name[0] == '.' && sym->name[1] == 'L')
+ || ((sym -> flags & BSF_LOCAL)
+ && sym->name[0] == 'L'
+ && sym->name[1] == 'L'))
/* Looks like a compiler-generated label. Skip it.
The assembler should be skipping these (to keep
executables small), but apparently with gcc on the