# HG changeset patch # User Matti Hamalainen # Date 1353154942 -7200 # Node ID 270a2d695607041ab91c7ac08a7d0b2879f4d618 # Parent b02f1bfce53b57ffb4b457029e0b629ff96221e1 Describe option did not actually show the unreserved/unused areas of the output file, fixed. diff -r b02f1bfce53b -r 270a2d695607 objlink.c --- a/objlink.c Sat Nov 17 14:21:42 2012 +0200 +++ b/objlink.c Sat Nov 17 14:22:22 2012 +0200 @@ -674,15 +674,15 @@ ssize_t siz, kz; // Check for empty, unreserved areas - if (prev != NULL && prev->start - 1 > curr->end + 1) + if (prev != NULL && curr->start - prev->end > 1) { - siz = (prev->start - 1) - (curr->end + 1); + siz = (curr->start - 1) - (prev->end + 1); kz = siz / (1024 * 2); if (kz > 1) memPrintEmpty(f, kz); - snprintf(desc, sizeof(desc), "EMPTY (%d)", siz); - fprintf(f, "$%.4x - $%.4x | %-40s |\n", curr->end + 1, prev->start - 1, desc); + snprintf(desc, sizeof(desc), "EMPTY (%d bytes)", siz); + fprintf(f, "$%.4x - $%.4x | %-40s |\n", prev->end + 1, curr->start - 1, desc); if (kz > 1) memPrintEmpty(f, kz); memPrintLine(f);