From 27be2fedcdd05b0c5ec576dd5c3252a863bad6f2 Mon Sep 17 00:00:00 2001 From: meri Date: Wed, 21 Nov 2007 05:07:37 +0000 Subject: fixed updated linker file git-svn-id: https://svn.openpcd.org:2342/trunk@339 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/config/atmel-rom.ld | 45 ++++++++++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 20 deletions(-) (limited to 'openpicc') 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 = .); -- cgit v1.2.3