diff options
Diffstat (limited to 'bfd/coff-mcore.c')
-rw-r--r-- | bfd/coff-mcore.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/bfd/coff-mcore.c b/bfd/coff-mcore.c index fedcb0a..e5005dc 100644 --- a/bfd/coff-mcore.c +++ b/bfd/coff-mcore.c @@ -392,6 +392,7 @@ coff_mcore_relocate_section (bfd * output_bfd, reloc_howto_type * howto = NULL; struct coff_link_hash_entry * h; const char * my_name; + char buf[SYMNMLEN + 1]; symndx = rel->r_symndx; loc = contents + rel->r_vaddr - input_section->vma; @@ -436,8 +437,6 @@ coff_mcore_relocate_section (bfd * output_bfd, my_name = obj_coff_strings (input_bfd) + sym->_n._n_n._n_offset; else { - static char buf [SYMNMLEN + 1]; - strncpy (buf, sym->_n._n_name, SYMNMLEN); buf[SYMNMLEN] = '\0'; my_name = buf; |