X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=cpu%2Farm%2Fscripts%2Fsam7s256_rom.ld;fp=cpu%2Farm%2Fscripts%2Fsam7s256_rom.ld;h=26540d076074878e33154e72e1d3d7fbfd2d2fae;hb=1723d9ca9f80afeb686453c6971ebf4e43a592d5;hp=15776ef1497d51cf6860050c6d01f9a4fc271734;hpb=d8dc110fb113323f6def8bd5aeee650072a8a12c;p=bertos.git 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 = .);