+ first linker script for arm-embedded

git-svn-id: trunk@12596 -
This commit is contained in:
florian 2009-01-25 21:48:38 +00:00
parent 9f9c01cef8
commit 2a29180517

View File

@ -207,7 +207,36 @@ begin
end;
end;
{ Write and Close response }
{$ifdef ARM}
Add('SECTIONS');
Add('{');
Add(' /* interrupt vectors */');
Add(' . = 0x0; /* start of flash */');
Add(' .init :');
Add(' {');
Add(' *(.init)');
Add(' }');
Add(' /* code and constants */');
Add(' .text :');
Add(' {');
Add(' *(.text)');
Add(' *(.strings)');
Add(' *(.rodata.*)');
Add(' *(.comment)');
Add(' }');
Add(' /* uninitialized data */');
Add(' . = 0x40000000; /* start of ram */');
Add(' .bss :');
Add(' {');
Add(' *(.bss)');
Add(' *(COMMON)');
Add(' *(.data)');
Add(' KEEP (*(.fpc .fpc.n_version .fpc.n_links))');
Add(' }');
Add('}');
{$endif ARM}
{ Write and Close response }
linkres.writetodisk;
linkres.free;