From 8452be6e5251c44f53b1f520e9f1ce9ac1549f4a Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 15 Oct 2007 11:58:30 +0000 Subject: [PATCH] Add first sckel of linker script. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@877 38d2e660-2303-0410-9eaa-f027e97ec537 --- cpu/arm/scripts/sam7s256_rom.ld | 98 +++++++++++++++++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 cpu/arm/scripts/sam7s256_rom.ld diff --git a/cpu/arm/scripts/sam7s256_rom.ld b/cpu/arm/scripts/sam7s256_rom.ld new file mode 100644 index 00000000..9ab81858 --- /dev/null +++ b/cpu/arm/scripts/sam7s256_rom.ld @@ -0,0 +1,98 @@ +/** + * \file + * + * + * \version $Id: sysirq_at91.c 18273 2007-10-11 14:53:02Z batt $ + * + * \author Daniele Basile + * + * \brief Script linker for Atmel AT91 SAM7S256 processors. + * + */ + + +ENTRY(ResetHandler) +STARTUP(crtat91sam7x256_rom.o) /* DA SOSTITUIRE */ +SEARCH_DIR(.) +OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") +OUTPUT_ARCH(arm) + +MEMORY +{ + rom(rx) : org = 0x00000000, len = 256k + ram(rw) : org = 0x00200000, len = 64k +} + +SECTIONS +{ + .text : + { + * ( .vectors ); + . = ALIGN ( 4 ); + * ( .init ); + . = ALIGN ( 4 ); + * ( .rodata ); + . = ALIGN ( 4 ); + * ( .rodata* ); + . = ALIGN ( 4 ); + } > rom + + . = ALIGN ( 4 ); + + _etext = .; + PROVIDE ( __etext = . ); + + .data : AT ( __etext ) + { + PROVIDE ( __data_start = . ); + * ( .data ) + . = ALIGN ( 4 ); + * ( .ramfunc ) + _edata = .; + PROVIDE ( __data_end = . ); + } + > ram + + .bss : + { + PROVIDE ( __bss_start = . ); + * ( .bss ) + * ( COMMON ) + . = ALIGN ( 4 ); + PROVIDE ( __bss_end = . ); + . += 0x400; + PROVIDE ( __exp_stack = . ); + . += 0x400; + PROVIDE ( __stack = . ); + PROVIDE ( __heap_start = . ); + } > ram + +} -- 2.25.1