aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--binutils/dlltool.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/binutils/dlltool.c b/binutils/dlltool.c
index 99c651f..8b888fe 100644
--- a/binutils/dlltool.c
+++ b/binutils/dlltool.c
@@ -1428,6 +1428,7 @@ scan_filtered_symbols (bfd *abfd, void *minisyms, long symcount,
if (*symbol_name
&& *symbol_name == bfd_get_symbol_leading_char (abfd))
++symbol_name;
+ symbol_name = xstrdup (symbol_name);
def_exports (symbol_name , 0, -1, 0, 0,
! (sym->flags & BSF_FUNCTION), 0, NULL);