aboutsummaryrefslogtreecommitdiff
path: root/bfd/syms.c
diff options
context:
space:
mode:
Diffstat (limited to 'bfd/syms.c')
-rw-r--r--bfd/syms.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/bfd/syms.c b/bfd/syms.c
index 23a1c19..feaddd6 100644
--- a/bfd/syms.c
+++ b/bfd/syms.c
@@ -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);
}