diff options
Diffstat (limited to 'ld/ldlang.c')
-rw-r--r-- | ld/ldlang.c | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/ld/ldlang.c b/ld/ldlang.c index 92cb77d..116f2e5 100644 --- a/ld/ldlang.c +++ b/ld/ldlang.c @@ -5269,9 +5269,17 @@ lang_one_common (struct bfd_link_hash_entry *h, void *info) name = bfd_demangle (output_bfd, h->root.string, DMGL_ANSI | DMGL_PARAMS); - minfo ("%s", name); - len = strlen (name); - free (name); + if (name == NULL) + { + minfo ("%s", h->root.string); + len = strlen (h->root.string); + } + else + { + minfo ("%s", name); + len = strlen (name); + free (name); + } if (len >= 19) { |