Tue Jul 26 18:20:46 1994 Paul Flinders (ptf@smee)
authorStan Shebs <shebs@codesourcery.com>
Tue, 26 Jul 1994 22:22:38 +0000 (22:22 +0000)
committerStan Shebs <shebs@codesourcery.com>
Tue, 26 Jul 1994 22:22:38 +0000 (22:22 +0000)
* elfread.c (elf_symtab_read): Discard compiler labels generated
by the Solaris 2.1/Intel SunPro compiler.

gdb/ChangeLog
gdb/elfread.c

index 4dab9f0ce2f5c5fcc240a8bc35920aaf2401bb27..0fb6a77039171bcc9f4e063f7addb6311ae3e308 100644 (file)
@@ -1,3 +1,8 @@
+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.
+
 Mon Jul 25 18:19:24 1994  Stu Grossman  (grossman@cygnus.com)
 
        * target.c (nomemory):  Fix prototype and routine to take correct
index 67ce6086dac7bab19ae37371194a7c8ad0ddb3ce..2a9c39273f4e02b4a6986bfb172715ead1730282 100644 (file)
@@ -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