aboutsummaryrefslogtreecommitdiff
path: root/gdb/elfread.c
diff options
context:
space:
mode:
authorKung Hsu <kung@cygnus>1995-07-07 21:44:57 +0000
committerKung Hsu <kung@cygnus>1995-07-07 21:44:57 +0000
commitd97d5b48abd98279f45b0d59ec1bd5843b942be4 (patch)
treea77f973d728333b6d51b3b8da8aedab55968de36 /gdb/elfread.c
parentc7e76b5eeacef4d01d6f2b9469bd28ba8a8d3deb (diff)
downloadgdb-d97d5b48abd98279f45b0d59ec1bd5843b942be4.zip
gdb-d97d5b48abd98279f45b0d59ec1bd5843b942be4.tar.gz
gdb-d97d5b48abd98279f45b0d59ec1bd5843b942be4.tar.bz2
* elfread.c (elf_symtab_read): Fix a bug ignoring compiler
generated internal labels ($LM...).
Diffstat (limited to 'gdb/elfread.c')
-rw-r--r--gdb/elfread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/elfread.c b/gdb/elfread.c
index a4d4f72..0425c01 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -401,7 +401,7 @@ elf_symtab_read (abfd, addr, objfile, dynamic)
}
else if ((sym->name[0] == '.' && sym->name[1] == 'L')
|| ((sym -> flags & BSF_LOCAL)
- && sym->name[0] == 'L'
+ && sym->name[0] == '$'
&& sym->name[1] == 'L'))
/* Looks like a compiler-generated label. Skip it.
The assembler should be skipping these (to keep