$NetBSD: binutils-ad,v 1.1 2001/10/21 12:24:16 kent Exp $

--- bfd/cofflink.c.orig	Thu Jun  7 12:08:24 2001
+++ bfd/cofflink.c
@@ -708,6 +708,15 @@
   long_section_names = false;
   for (o = abfd->sections; o != NULL; o = o->next)
     {
+#if 0
+      fprintf(stderr, "_bfd_coff_final_link: %s%s%s%s%s\n", o->name
+              o->flags & SEC_CODE ? " SEC_CODE" : "",
+              o->flags & SEC_DATA ? " SEC_DATA" : "",
+              o->flags & SEC_ALLOC ? " SEC_ALLOC" : "",
+              o->flags & SEC_READONLY ? " SEC_READONLY" : "");
+#endif
+      if (o->flags & SEC_CODE && o->flags & SEC_DATA)
+        o->flags &= ~SEC_DATA;
       o->reloc_count = 0;
       o->lineno_count = 0;
       for (p = o->link_order_head; p != NULL; p = p->next)
