From 4fac4100cb2a78ff0de002526e8d4bdac9715ccb Mon Sep 17 00:00:00 2001 From: Alan Cox Date: Sat, 15 Nov 2014 21:14:57 +0000 Subject: [PATCH] binman: memcpy the initialized data over This accidentally got removed when I stripped it down from the full featured kernel version. --- Library/tools/binman.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Library/tools/binman.c b/Library/tools/binman.c index d6160842..1e4d73f1 100644 --- a/Library/tools/binman.c +++ b/Library/tools/binman.c @@ -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) { -- 2.34.1