m68k-palmos: further fixes to assembly section. also actually use aout, as we have aout binutils for palmos

This commit is contained in:
Karoly Balogh 2024-05-25 00:14:11 +03:00
parent 627734e104
commit e507f612f5

View File

@ -38,8 +38,11 @@ interface
type type
Tm68kAoutGNUAssembler=class(TAoutGNUAssembler) Tm68kAoutGNUAssembler=class(TAoutGNUAssembler)
constructor CreateWithWriter(info: pasminfo; wr: TExternalAssemblerOutputFile; freewriter, smart: boolean); override; protected
function MakeCmdLine : TCmdStr; override; function sectionattrs(atype:TAsmSectiontype):string; override;
public
constructor CreateWithWriter(info: pasminfo; wr: TExternalAssemblerOutputFile; freewriter, smart: boolean); override;
function MakeCmdLine : TCmdStr; override;
end; end;
@ -101,6 +104,10 @@ interface
Replace(result,'$ARCH',GasMachineArg); Replace(result,'$ARCH',GasMachineArg);
end; end;
function tm68kAoutGNUAssembler.sectionattrs(atype:TAsmSectiontype):string;
begin
result:='';
end;
function getreferencestring(var ref : treference) : string; function getreferencestring(var ref : treference) : string;
var var
@ -364,7 +371,7 @@ interface
idtxt : 'AS'; idtxt : 'AS';
asmbin : 'as'; asmbin : 'as';
asmcmd : '$ARCH -o $OBJ $EXTRAOPT $ASM'; asmcmd : '$ARCH -o $OBJ $EXTRAOPT $ASM';
supported_targets : [system_m68k_macosclassic,system_m68k_linux,system_m68k_PalmOS,system_m68k_netbsd,system_m68k_human68k,system_m68k_embedded]; supported_targets : [system_m68k_macosclassic,system_m68k_linux,system_m68k_netbsd,system_m68k_human68k,system_m68k_embedded];
flags : [af_needar,af_smartlink_sections]; flags : [af_needar,af_smartlink_sections];
labelprefix : '.L'; labelprefix : '.L';
labelmaxlen : -1; labelmaxlen : -1;
@ -378,7 +385,7 @@ interface
idtxt : 'AS-AOUT'; idtxt : 'AS-AOUT';
asmbin : 'as'; asmbin : 'as';
asmcmd : '$ARCH -o $OBJ $EXTRAOPT $ASM'; asmcmd : '$ARCH -o $OBJ $EXTRAOPT $ASM';
supported_targets : [system_m68k_Amiga,system_m68k_Atari]; supported_targets : [system_m68k_Amiga,system_m68k_Atari,system_m68k_palmos];
flags : [af_needar]; flags : [af_needar];
labelprefix : '.L'; labelprefix : '.L';
labelmaxlen : -1; labelmaxlen : -1;