diff options
Diffstat (limited to 'ld/ldcref.c')
-rw-r--r-- | ld/ldcref.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/ldcref.c b/ld/ldcref.c index 3966bbc..4fa29de 100644 --- a/ld/ldcref.c +++ b/ld/ldcref.c @@ -57,7 +57,7 @@ struct cref_ref { struct cref_hash_entry { struct bfd_hash_entry root; /* The demangled name. */ - char *demangled; + const char *demangled; /* References to and definitions of this symbol. */ struct cref_ref *refs; }; @@ -327,6 +327,8 @@ cref_fill_array (struct cref_hash_entry *h, void *data) ASSERT (h->demangled == NULL); h->demangled = bfd_demangle (output_bfd, h->root.string, DMGL_ANSI | DMGL_PARAMS); + if (h->demangled == NULL) + h->demangled = h->root.string; **pph = h; |