|
@@ -971,6 +971,8 @@ end;
|
|
function TInternalLinker.RunLinkScript(const outputname:string):boolean;
|
|
function TInternalLinker.RunLinkScript(const outputname:string):boolean;
|
|
label
|
|
label
|
|
myexit;
|
|
myexit;
|
|
|
|
+ var
|
|
|
|
+ bsssize : aint;
|
|
begin
|
|
begin
|
|
result:=false;
|
|
result:=false;
|
|
|
|
|
|
@@ -1016,6 +1018,13 @@ end;
|
|
{$warning TODO fixed section names}
|
|
{$warning TODO fixed section names}
|
|
status.codesize:=exeoutput.findexesection('.text').size;
|
|
status.codesize:=exeoutput.findexesection('.text').size;
|
|
status.datasize:=exeoutput.findexesection('.data').size;
|
|
status.datasize:=exeoutput.findexesection('.data').size;
|
|
|
|
+ bsssize:=exeoutput.findexesection('.bss').size;
|
|
|
|
+
|
|
|
|
+ { Executable info }
|
|
|
|
+ Message1(execinfo_x_codesize,tostr(status.codesize));
|
|
|
|
+ Message1(execinfo_x_initdatasize,tostr(status.datasize));
|
|
|
|
+ Message1(execinfo_x_uninitdatasize,tostr(bsssize));
|
|
|
|
+ Message1(execinfo_x_stackreserve,tostr(stacksize));
|
|
|
|
|
|
myexit:
|
|
myexit:
|
|
{ close map }
|
|
{ close map }
|