summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormeri <meri@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-21 05:07:37 +0000
committermeri <meri@6dc7ffe9-61d6-0310-9af1-9938baff3ed1>2007-11-21 05:07:37 +0000
commit27be2fedcdd05b0c5ec576dd5c3252a863bad6f2 (patch)
treeb437b963f2bc683395c6564139a229d750a85968
parent277417732527017b87d841d291c14fd5c3f68dff (diff)
fixed updated linker file
git-svn-id: https://svn.openpcd.org:2342/trunk@339 6dc7ffe9-61d6-0310-9af1-9938baff3ed1
-rw-r--r--openpicc/config/atmel-rom.ld45
1 files changed, 25 insertions, 20 deletions
diff --git a/openpicc/config/atmel-rom.ld b/openpicc/config/atmel-rom.ld
index 6307cb4..aa5bbbc 100644
--- a/openpicc/config/atmel-rom.ld
+++ b/openpicc/config/atmel-rom.ld
@@ -23,25 +23,30 @@ SECTIONS
__end_of_text__ = .;
- .data :
- {
- *(.fastrun)
- *(.ramfunc)
-
- __data_beg__ = .; __data_beg_src__ = __end_of_text__;
- *(.data)
- *(.data.*)
- __data_end__ = .;
- } > ram
-
- .bss :
- {
- __bss_beg__ = .;
- *(.bss)
- *(.bss.*)
- . = ALIGN(32 / 8);
- _end = . ; _bss_end__ = . ; __bss_end__ = . ; __end__ = . ;
- } >ram
+ .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