From 622cef2655a59d715480af165caed8cd4ba0040c Mon Sep 17 00:00:00 2001 From: ggn Date: Mon, 16 Nov 2015 13:54:03 +0200 Subject: [PATCH] TEXT/DATA/BSS sizes printed at the end of assembly only when -v is invoked. --- object.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/object.c b/object.c index baed1bd..cef73ee 100644 --- a/object.c +++ b/object.c @@ -220,6 +220,13 @@ int WriteObject(int fd) LONG trsize, drsize; // Size of relocations long unused; // For supressing 'write' warnings + if (verb_flag) + { + printf("TEXT segment: %d bytes\n", sect[TEXT].sloc); + printf("DATA segment: %d bytes\n", sect[DATA].sloc); + printf("BSS segment: %d bytes\n", sect[BSS].sloc); + } + // Write requested object file... switch (obj_format) { -- 2.37.2