public
/
FUZIX.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9502612
)
binman: memcpy the initialized data over
author
Alan Cox
<alan@etchedpixels.co.uk>
Sat, 15 Nov 2014 21:14:57 +0000
(21:14 +0000)
committer
Alan 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
patch
|
blob
|
history
diff --git
a/Library/tools/binman.c
b/Library/tools/binman.c
index
d616084
..
1e4d73f
100644
(file)
--- 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) {