mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-14 19:49:09 +02:00
sinclairql: map file generation support with vlink, inspired by a patch posted by Marcel Kilgus in qlforum.co.uk
git-svn-id: trunk@47559 -
This commit is contained in:
parent
75eaca8ab4
commit
ffa1b24f7e
@ -85,7 +85,7 @@ begin
|
|||||||
end
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
ExeCmd[1]:='vlink -b rawseg -q $FLAGS $GCSECTIONS $OPT $STRIP -o $EXE -T $RES';
|
ExeCmd[1]:='vlink -b rawseg -q $FLAGS $GCSECTIONS $OPT $STRIP $MAP -o $EXE -T $RES';
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -213,6 +213,7 @@ var
|
|||||||
DynLinkStr : string;
|
DynLinkStr : string;
|
||||||
GCSectionsStr : string;
|
GCSectionsStr : string;
|
||||||
FlagsStr : string;
|
FlagsStr : string;
|
||||||
|
MapStr : string;
|
||||||
ExeName: string;
|
ExeName: string;
|
||||||
fd,fs: file;
|
fd,fs: file;
|
||||||
fhdr: text;
|
fhdr: text;
|
||||||
@ -227,7 +228,10 @@ begin
|
|||||||
GCSectionsStr:='';
|
GCSectionsStr:='';
|
||||||
DynLinkStr:='';
|
DynLinkStr:='';
|
||||||
FlagsStr:='';
|
FlagsStr:='';
|
||||||
|
MapStr:='';
|
||||||
|
|
||||||
|
if (cs_link_map in current_settings.globalswitches) then
|
||||||
|
MapStr:='-M'+maybequoted(ScriptFixFilename(current_module.mapfilename));
|
||||||
if (cs_link_strip in current_settings.globalswitches) then
|
if (cs_link_strip in current_settings.globalswitches) then
|
||||||
StripStr:='-s';
|
StripStr:='-s';
|
||||||
if rlinkpath<>'' then
|
if rlinkpath<>'' then
|
||||||
@ -247,6 +251,7 @@ begin
|
|||||||
Replace(cmdstr,'$OPT',Info.ExtraOptions);
|
Replace(cmdstr,'$OPT',Info.ExtraOptions);
|
||||||
Replace(cmdstr,'$EXE',maybequoted(ScriptFixFileName(ExeName)));
|
Replace(cmdstr,'$EXE',maybequoted(ScriptFixFileName(ExeName)));
|
||||||
Replace(cmdstr,'$RES',maybequoted(ScriptFixFileName(outputexedir+Info.ResName)));
|
Replace(cmdstr,'$RES',maybequoted(ScriptFixFileName(outputexedir+Info.ResName)));
|
||||||
|
Replace(cmdstr,'$MAP',MapStr);
|
||||||
Replace(cmdstr,'$FLAGS',FlagsStr);
|
Replace(cmdstr,'$FLAGS',FlagsStr);
|
||||||
Replace(cmdstr,'$STRIP',StripStr);
|
Replace(cmdstr,'$STRIP',StripStr);
|
||||||
Replace(cmdstr,'$GCSECTIONS',GCSectionsStr);
|
Replace(cmdstr,'$GCSECTIONS',GCSectionsStr);
|
||||||
|
Loading…
Reference in New Issue
Block a user