summaryrefslogtreecommitdiff
path: root/openpicc/config/atmel-rom.ld
diff options
context:
space:
mode:
authorhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-06 20:26:48 +0000
committerhenryk <henryk@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-06 20:26:48 +0000
commit633c646ab36368caf6eaeedd326d9f1835196afd (patch)
treefdd0f60747745d3e528c0f5d8f8895b26fb79633 /openpicc/config/atmel-rom.ld
parent3b41196cb6b64cf6ba8ba41d6995428f73d4764a (diff)
Initial import of FreeRTOS code for OpenPICC
git-svn-id: https://svn.openpcd.org:2342/trunk@311 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
Diffstat (limited to 'openpicc/config/atmel-rom.ld')
-rw-r--r--openpicc/config/atmel-rom.ld53
1 files changed, 53 insertions, 0 deletions
diff --git a/openpicc/config/atmel-rom.ld b/openpicc/config/atmel-rom.ld
new file mode 100644
index 0000000..9a74420
--- /dev/null
+++ b/openpicc/config/atmel-rom.ld
@@ -0,0 +1,53 @@
+MEMORY
+{
+ flash : ORIGIN = 0x00100000, LENGTH = 256K - 1K /* save 1K for environment on top of flash */
+ ram : ORIGIN = 0x00200000, LENGTH = 64K
+}
+
+__stack_end__ = 0x00200000 + 64K - 4;
+
+SECTIONS
+{
+ . = 0;
+ startup : { *(.startup)} >flash
+
+ prog :
+ {
+ *(.text)
+ *(.text.*)
+ *(.rodata)
+ *(.rodata*)
+ *(.glue_7)
+ *(.glue_7t)
+ } >flash
+
+ __end_of_text__ = .;
+
+ .data :
+ {
+ __data_beg__ = .;
+ __data_beg_src__ = __end_of_text__;
+ *(.data)
+ *(.data.*)
+ *(.ramfunc)
+ __data_end__ = .;
+ } >ram AT>flash
+
+ .bss :
+ {
+ __bss_beg__ = .;
+ *(.bss)
+ *(.bss.*)
+ } >ram
+
+ /* Align here to ensure that the .bss section occupies space up to
+ _end. Align after .bss to ensure correct alignment even if the
+ .bss section disappears because there are no input sections. */
+ . = ALIGN(32 / 8);
+}
+ . = ALIGN(32 / 8);
+ _end = .;
+ _bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
+ PROVIDE (end = .);
+
+
personal git repositories of Harald Welte. Your mileage may vary