* elfread.c (elf_symtab_read): Don't add symbols starting with ".L"
authorJim Kingdon <jkingdon@engr.sgi.com>
Fri, 3 Sep 1993 22:02:59 +0000 (22:02 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Fri, 3 Sep 1993 22:02:59 +0000 (22:02 +0000)
to minimal symbols.

gdb/elfread.c

index bab5735a6a69fc6dc79327b2ade562bc3b88bbb1..d9670d638e2661d56b1408c7e14de28c56898117 100644 (file)
@@ -279,7 +279,12 @@ 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.  */
+                   /* Looks like a compiler-generated label.  Skip it.
+                      The assembler should be skipping these (to keep
+                      executables small), but apparently with gcc on the
+                      delta m88k SVR4, it loses.  So to have us check too
+                      should be harmless (but I encourage people to fix this
+                      in the assembler instead of adding checks here).  */
                    continue;
                  else
                    {