* config/obj-elf.c (obj_elf_version): Use memcpy rather than strcpy.

This commit is contained in:
Alan Modra
2006-11-22 03:35:36 +00:00
parent 833fb04eb8
commit 5ab504f906
2 changed files with 10 additions and 6 deletions

View File

@ -1,7 +1,11 @@
2006-11-22 Alan Modra <amodra@bigpond.net.au>
* config/obj-elf.c (obj_elf_version): Use memcpy rather than strcpy.
2006-11-16 Mei ligang <ligang@sunnorth.com.cn> 2006-11-16 Mei ligang <ligang@sunnorth.com.cn>
* config/tc-score.c (score_relax_frag): If next frag contains 32 bit branch * config/tc-score.c (score_relax_frag): If next frag contains 32 bit
instruction, handle it specially. branch instruction, handle it specially.
(score_insns): Modify 32 bit branch instruction. (score_insns): Modify 32 bit branch instruction.
2006-11-16 Alan Modra <amodra@bigpond.net.au> 2006-11-16 Alan Modra <amodra@bigpond.net.au>
@ -132,7 +136,7 @@
(do_macro_ldst_label): Modify inst.type. (do_macro_ldst_label): Modify inst.type.
(Insn_PIC): Delete. (Insn_PIC): Delete.
(data_op2): The immediate value in lw is 15 bit signed. (data_op2): The immediate value in lw is 15 bit signed.
2006-10-29 Randolph Chung <tausq@debian.org> 2006-10-29 Randolph Chung <tausq@debian.org>
* config/tc-hppa.c (hppa_cfi_frame_initial_instructions) * config/tc-hppa.c (hppa_cfi_frame_initial_instructions)
@ -179,7 +183,7 @@
* expr.c (expr): Replace O_add case in switch (op_left) explaining * expr.c (expr): Replace O_add case in switch (op_left) explaining
why it can never occur. why it can never occur.
2006-10-24 Andrew Pinski <andrew_pinski@playstation.sony.com> 2006-10-24 Andrew Pinski <andrew_pinski@playstation.sony.com>
* doc/c-ppc.texi (-mcell): Document. * doc/c-ppc.texi (-mcell): Document.

View File

@ -1,6 +1,6 @@
/* ELF object file format /* ELF object file format
Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, Copyright 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. 2001, 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler. This file is part of GAS, the GNU Assembler.
@ -1456,7 +1456,7 @@ obj_elf_version (int ignore ATTRIBUTE_UNUSED)
p = frag_more (sizeof (e_note.type)); p = frag_more (sizeof (e_note.type));
md_number_to_chars (p, i_note.type, sizeof (e_note.type)); md_number_to_chars (p, i_note.type, sizeof (e_note.type));
p = frag_more (len); p = frag_more (len);
strcpy (p, name); memcpy (p, name, len);
frag_align (2, 0, 0); frag_align (2, 0, 0);