* hack to set stack top for atmega128

* default output for avr-embedded is .hex

git-svn-id: trunk@18015 -
This commit is contained in:
florian 2011-07-17 20:46:05 +00:00
parent 57613d1bb9
commit 95ad75c7bf

View File

@ -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')+' '+