This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
fix x86 bootstrap
- To: gcc-patches at gcc dot gnu dot org
- Subject: fix x86 bootstrap
- From: Richard Henderson <rth at redhat dot com>
- Date: Mon, 8 Oct 2001 21:47:18 -0700
- Cc: robertlipe at usa dot net
Robert's recent patch forgot to actually initialize the new
field, which resulted in .ctors not being marked "allocate",
which means that the linker didn't load the data from the
object file.
r~
* varasm.c (set_named_section_flags): Initialize "declared".
Index: varasm.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/varasm.c,v
retrieving revision 1.213
diff -u -p -r1.213 varasm.c
--- varasm.c 2001/10/08 22:41:55 1.213
+++ varasm.c 2001/10/09 04:44:15
@@ -387,6 +387,7 @@ set_named_section_flags (section, flags)
*slot = entry;
entry->name = ggc_strdup (section);
entry->flags = flags;
+ entry->declared = false;
}
else if (entry->flags != flags)
return false;