mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 02:50:42 +02:00
* hack to set stack top for atmega128
* default output for avr-embedded is .hex git-svn-id: trunk@18015 -
This commit is contained in:
parent
57613d1bb9
commit
95ad75c7bf
@ -562,6 +562,8 @@ begin
|
||||
Add(' .debug_loc 0 : { *(.debug_loc) }');
|
||||
Add(' .debug_macinfo 0 : { *(.debug_macinfo) }');
|
||||
Add('}');
|
||||
{ last address of ram on an atmega128 }
|
||||
Add('_stack_top = 0x0fff;');
|
||||
end;
|
||||
{$endif AVR}
|
||||
|
||||
@ -625,7 +627,7 @@ begin
|
||||
DeleteFile(outputexedir+Info.ResName);
|
||||
|
||||
{ Post process }
|
||||
if success and (target_info.system=system_arm_embedded) then
|
||||
if success and (target_info.system in [system_arm_embedded,system_avr_embedded]) then
|
||||
begin
|
||||
success:=DoExec(FindUtil(utilsprefix+'objcopy'),'-O ihex '+
|
||||
ChangeFileExt(current_module.exefilename^,'.elf')+' '+
|
||||
|
Loading…
Reference in New Issue
Block a user