aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-02-09 17:47:40 +0000
committerStan Shebs <shebs@codesourcery.com>1994-02-09 17:47:40 +0000
commit66c774bb3e9007c70f6a13e06a7acddb0da3a5f0 (patch)
tree20e8ea81dcc72aeee9204edb063cdf734b4e72f4 /gas
parent356315fe1c376cacb410620cb5da4257b1f642e0 (diff)
downloadgdb-66c774bb3e9007c70f6a13e06a7acddb0da3a5f0.zip
gdb-66c774bb3e9007c70f6a13e06a7acddb0da3a5f0.tar.gz
gdb-66c774bb3e9007c70f6a13e06a7acddb0da3a5f0.tar.bz2
Wed Feb 9 09:42:45 1994 Stan Shebs (shebs@andros.cygnus.com)
* config/obj-coffbfd.c (obj_coff_init_stab_section): Use memset instead of memcpy to zero the initial stab symbol, duh. * config/obj-elf.c (obj_elf_init_stab_section): Ditto. * config/obj-som.c (obj_som_init_stab_section): Ditto.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/config/obj-coffbfd.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 4631b0d..cb885a6 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,10 @@
+Wed Feb 9 09:42:45 1994 Stan Shebs (shebs@andros.cygnus.com)
+
+ * config/obj-coffbfd.c (obj_coff_init_stab_section): Use memset
+ instead of memcpy to zero the initial stab symbol, duh.
+ * config/obj-elf.c (obj_elf_init_stab_section): Ditto.
+ * config/obj-som.c (obj_som_init_stab_section): Ditto.
+
Tue Feb 8 17:25:44 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
* write.c (fixup_segment): Use as_bad_where, not as_bad.
diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c
index 2c4aa43..c405343 100644
--- a/gas/config/obj-coffbfd.c
+++ b/gas/config/obj-coffbfd.c
@@ -2661,7 +2661,7 @@ obj_coff_init_stab_section (seg)
/* Make space for this first symbol. */
p = frag_more (12);
/* Zero it out. */
- memcpy (p, 0, 12);
+ memset (p, 0, 12);
as_where (&file, (unsigned int *) NULL);
stabstr_name = alloca (strlen (segment_info[seg].scnhdr.s_name) + 4);
strcpy (stabstr_name, segment_info[seg].scnhdr.s_name);