Patches applied to sources

--- bfd/coffcode.h.orig	Thu May  9 17:48:48 2002
+++ bfd/coffcode.h	Mon May 20 15:16:36 2002
@@ -3276,6 +3276,10 @@
 
 #endif /* 0 */
 
+#if defined (__MSDOS__)
+#define COFF_PAD_SECTION_HEADERS
+#endif
+
 /* SUPPRESS 558 */
 /* SUPPRESS 529 */
 static boolean
@@ -3663,6 +3667,19 @@
 #endif
 #endif
 
+#ifdef COFF_PAD_SECTION_HEADERS
+  if ((abfd->flags & EXEC_P) != 0)
+    {
+      file_ptr cur_ptr = scn_base
+                         + abfd->section_count * bfd_coff_scnhsz (abfd);
+      long fill_size = (abfd->sections->filepos - cur_ptr);
+      bfd_byte *b = bfd_zmalloc (fill_size);
+      if (b)
+        bfd_write ((PTR)b, 1, fill_size, abfd);
+      free (b);
+    }
+#endif
+
   /* OK, now set up the filehdr...  */
 
   /* Don't include the internal abs section in the section count */
