binman: memcpy the initialized data over
authorAlan Cox <alan@etchedpixels.co.uk>
Sat, 15 Nov 2014 21:14:57 +0000 (21:14 +0000)
committerAlan Cox <alan@etchedpixels.co.uk>
Sat, 15 Nov 2014 21:14:57 +0000 (21:14 +0000)
This accidentally got removed when I stripped it down from the full
featured kernel version.

Library/tools/binman.c

index d616084..1e4d73f 100644 (file)
@@ -75,6 +75,7 @@ int main(int argc, char *argv[])
     perror(argv[3]);
     exit(1);
   }
+  memcpy(buf + s__INITIALIZED, buf + s__INITIALIZER, l__INITIALIZER);
   /* Write out everything that is data, omit everything that will 
      be zapped */
   if (fwrite(buf + 0x100, s__DATA - 0x100, 1, bin) != 1) {