From 1723d9ca9f80afeb686453c6971ebf4e43a592d5 Mon Sep 17 00:00:00 2001 From: batt Date: Tue, 16 Oct 2007 14:03:46 +0000 Subject: [PATCH] Add glue sections; change entrypoint; git-svn-id: https://src.develer.com/svnoss/bertos/trunk@885 38d2e660-2303-0410-9eaa-f027e97ec537 --- cpu/arm/scripts/sam7s256_rom.ld | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) diff --git a/cpu/arm/scripts/sam7s256_rom.ld b/cpu/arm/scripts/sam7s256_rom.ld index 15776ef1..26540d07 100644 --- a/cpu/arm/scripts/sam7s256_rom.ld +++ b/cpu/arm/scripts/sam7s256_rom.ld @@ -79,7 +79,7 @@ */ -ENTRY(ResetHandler) +ENTRY(_init) SEARCH_DIR(.) OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) @@ -89,8 +89,8 @@ OUTPUT_ARCH(arm) */ MEMORY { - rom(rx) : org = 0x00000000, len = 256k - ram(rw) : org = 0x00200000, len = 64k + rom(rx) : org = 0x00100000, len = 256k + ram(rwx) : org = 0x00200000, len = 64k } @@ -108,19 +108,24 @@ SVC_STACK_SIZE = 0x0400; */ SECTIONS { - .text : - { - * (.vectors); - . = ALIGN (4); - * (.init); - . = ALIGN (4); - * (.rodata); - . = ALIGN (4); - * (.rodata*); - . = ALIGN (4); + .text : + { + * (.vectors); + . = ALIGN (4); + * (.init); + . = ALIGN (4); + * (.rodata); + . = ALIGN (4); + * (.rodata*); + . = ALIGN (4); + * (.text); + . = ALIGN (4); + *(.glue_7t); + . = ALIGN(4); + *(.glue_7); + . = ALIGN(4); } > rom - . = ALIGN (4); _etext = .; PROVIDE (__etext = .); -- 2.25.1