* targets.c (bfd_target_vector) [SELECT_VECS not defined]: Add
[binutils-gdb.git] / bfd / syms.c
index 23a1c19823fab3d3122aadae744f3aa76fdc9d51..feaddd6d3f79cdd339d72518c52d3885e6891bd2 100644 (file)
@@ -88,7 +88,7 @@ SUBSECTION
 |           process_symbol (symbol_table[i]);
 |        }
 
-       All storage for the symbols themselves is in an obstack
+       All storage for the symbols themselves is in an objalloc
        connected to the BFD; it is freed when the BFD is closed.
 
 
@@ -352,6 +352,8 @@ bfd_is_local_label (abfd, sym)
 {
   if ((sym->flags & (BSF_GLOBAL | BSF_WEAK)) != 0)
     return false;
+  if (sym->name == NULL)
+    return false;
   return bfd_is_local_label_name (abfd, sym->name);
 }