diff options
author | Stan Shebs <shebs@codesourcery.com> | 1994-02-05 21:45:51 +0000 |
---|---|---|
committer | Stan Shebs <shebs@codesourcery.com> | 1994-02-05 21:45:51 +0000 |
commit | 41b5ef0f76885c6345a1dc2074f403e4fa37db67 (patch) | |
tree | a825c9fc259a8e3f5df12d85fd3a58568784929c | |
parent | 60f1cc9858500cc6c104321d3d6e213e5f6780fc (diff) | |
download | gdb-41b5ef0f76885c6345a1dc2074f403e4fa37db67.zip gdb-41b5ef0f76885c6345a1dc2074f403e4fa37db67.tar.gz gdb-41b5ef0f76885c6345a1dc2074f403e4fa37db67.tar.bz2 |
Sat Feb 5 12:30:32 1994 Stan Shebs (shebs@andros.cygnus.com)
* config/obj-coffbfd.c (obj_coff_init_stab_section): Zero the
initial stab symbol after allocating it.
* config/obj-elf.c (obj_elf_init_stab_section): Ditto.
This fixes a critical bug observed in Q4 for Lynx.
-rw-r--r-- | gas/ChangeLog | 6 | ||||
-rw-r--r-- | gas/config/obj-coffbfd.c | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index 3763706..dc77c47 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,9 @@ +Sat Feb 5 12:30:32 1994 Stan Shebs (shebs@andros.cygnus.com) + + * config/obj-coffbfd.c (obj_coff_init_stab_section): Zero the + initial stab symbol after allocating it. + * config/obj-elf.c (obj_elf_init_stab_section): Ditto. + Sat Feb 5 11:53:31 1994 Jeffrey A. Law (law@snake.cs.utah.edu) * config/tc-hppa.c (pa_ip): addb[tf] should only accept diff --git a/gas/config/obj-coffbfd.c b/gas/config/obj-coffbfd.c index 96d7154..2c4aa43 100644 --- a/gas/config/obj-coffbfd.c +++ b/gas/config/obj-coffbfd.c @@ -2660,6 +2660,8 @@ obj_coff_init_stab_section (seg) /* Make space for this first symbol. */ p = frag_more (12); + /* Zero it out. */ + memcpy (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); |