mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-12 09:06:02 +02:00
- cleaned up some of the commented out code from t_zxspectrum
git-svn-id: branches/z80@44855 -
This commit is contained in:
parent
b85f62a3e1
commit
e72a5314eb
@ -44,7 +44,6 @@ implementation
|
|||||||
FOrigin: Word;
|
FOrigin: Word;
|
||||||
Function WriteResponseFile: Boolean;
|
Function WriteResponseFile: Boolean;
|
||||||
public
|
public
|
||||||
{ constructor Create; override;}
|
|
||||||
procedure SetDefaultInfo; override;
|
procedure SetDefaultInfo; override;
|
||||||
function MakeExecutable:boolean; override;
|
function MakeExecutable:boolean; override;
|
||||||
function postprocessexecutable(const fn : string;isdll:boolean):boolean;
|
function postprocessexecutable(const fn : string;isdll:boolean):boolean;
|
||||||
@ -210,17 +209,12 @@ function TLinkerZXSpectrum_SdccSdld.WriteResponseFile: Boolean;
|
|||||||
|
|
||||||
procedure TLinkerZXSpectrum_SdccSdld.SetDefaultInfo;
|
procedure TLinkerZXSpectrum_SdccSdld.SetDefaultInfo;
|
||||||
const
|
const
|
||||||
{$if defined(Z80)}
|
|
||||||
ExeName='sdcc-sdldz80';
|
ExeName='sdcc-sdldz80';
|
||||||
{$else}
|
|
||||||
ExeName='sdcc-sdld';
|
|
||||||
{$endif}
|
|
||||||
begin
|
begin
|
||||||
FOrigin:=32768;
|
FOrigin:=32768;
|
||||||
with Info do
|
with Info do
|
||||||
begin
|
begin
|
||||||
ExeCmd[1]:=ExeName+' -n -b _CODE=$ORIGIN $OPT -i $MAP $EXE -f $RES'
|
ExeCmd[1]:=ExeName+' -n -b _CODE=$ORIGIN $OPT -i $MAP $EXE -f $RES'
|
||||||
//-g '+platform_select+' $OPT $DYNLINK $STATIC $GCSECTIONS $STRIP $MAP -L. -o $EXE -T $RES';
|
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -288,17 +282,6 @@ function TLinkerZXSpectrum_SdccSdld.MakeExecutable: boolean;
|
|||||||
if success and not(cs_link_nolink in current_settings.globalswitches) then
|
if success and not(cs_link_nolink in current_settings.globalswitches) then
|
||||||
success:=PostProcessExecutable(FixedExeFileName,false);
|
success:=PostProcessExecutable(FixedExeFileName,false);
|
||||||
|
|
||||||
(* if success and (target_info.system in [system_arm_embedded,system_avr_embedded,system_mipsel_embedded,system_xtensa_embedded]) then
|
|
||||||
begin
|
|
||||||
success:=DoExec(FindUtil(utilsprefix+'objcopy'),'-O ihex '+
|
|
||||||
FixedExeFileName+' '+
|
|
||||||
maybequoted(ScriptFixFileName(ChangeFileExt(current_module.exefilename,'.hex'))),true,false);
|
|
||||||
if success then
|
|
||||||
success:=DoExec(FindUtil(utilsprefix+'objcopy'),'-O binary '+
|
|
||||||
FixedExeFileName+' '+
|
|
||||||
maybequoted(ScriptFixFileName(ChangeFileExt(current_module.exefilename,'.bin'))),true,false);
|
|
||||||
end;*)
|
|
||||||
|
|
||||||
MakeExecutable:=success; { otherwise a recursive call to link method }
|
MakeExecutable:=success; { otherwise a recursive call to link method }
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user