PR24144, pdp11-ld overwriting section data with zeros
[deliverable/binutils-gdb.git] / bfd / pdp11.c
index a46775a4edd77cfaad580a9165b5e38dd6f667d4..b16c78f9399b606c975d55fea7a6c91cfbc648e1 100644 (file)
@@ -1146,14 +1146,6 @@ NAME (aout, set_section_contents) (bfd *abfd,
       if (bfd_seek (abfd, section->filepos + offset, SEEK_SET) != 0
          || bfd_bwrite (location, count, abfd) != count)
        return FALSE;
-
-      /* If necessary, pad the section to its aligned size.  */
-      if ((section == obj_datasec (abfd)
-          || section == obj_textsec (abfd))
-         && count < section->size
-         && (bfd_seek (abfd, section->filepos + offset + section->size - 1, SEEK_SET) != 0
-             || bfd_bwrite ("", 1, abfd) != 1))
-       return FALSE;
     }
 
   return TRUE;
This page took 0.024873 seconds and 4 git commands to generate.