Hi.
This patch fixes the variable as pfn at write_pages().
The existing makedumpfile aborts with "Floating point exception"
if you select ELF format as a dumpfile format(-E option).
it used dh->max_mapnr as pfn at write_pages(), but makedumpfile
does not set the value into dh->max_mapnr with ELF format, and
the value divides by 0.
Thanks
Ken'ichi Ohmichi
diff -puN makedumpfile.org/makedumpfile.c makedumpfile/makedumpfile.c
--- makedumpfile.org/makedumpfile.c 2006-11-15 09:45:56.000000000 +0900
+++ makedumpfile/makedumpfile.c 2006-11-15 09:46:26.000000000 +0900
@@ -2796,7 +2796,7 @@ write_pages(struct DumpInfo *info)
/*
* Count the number of dumpable pages.
*/
- for (pfn = 0 ; pfn < dh->max_mapnr; pfn++) {
+ for (pfn = 0 ; pfn < info->max_mapnr; pfn++) {
if (is_dumpable(&bitmap2, pfn))
num_dumpable++;
}
_
_______________________________________________
fastboot mailing list
[email protected]
https://lists.osdl.org/mailman/listinfo/fastboot