X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fcpu%2Farm%2Fscripts%2Farm7tdmi_ram.ld;h=278256eaf60645a37b6dc1d6bb59746eae97f9b7;hb=abe3971a48275b87ad9369ab67d2a64bb51e6ca1;hp=be00e91aecfdba968b50d6609cb1edc8f6660562;hpb=129544829eee6d8d67e019617f28f17c60881131;p=bertos.git diff --git a/bertos/cpu/arm/scripts/arm7tdmi_ram.ld b/bertos/cpu/arm/scripts/arm7tdmi_ram.ld index be00e91a..278256ea 100644 --- a/bertos/cpu/arm/scripts/arm7tdmi_ram.ld +++ b/bertos/cpu/arm/scripts/arm7tdmi_ram.ld @@ -36,7 +36,6 @@ * */ -ENTRY(_init) OUTPUT_FORMAT("elf32-littlearm", "elf32-bigarm", "elf32-littlearm") OUTPUT_ARCH(arm) @@ -58,7 +57,9 @@ SECTIONS { KEEP(*(.vectors)); . = ALIGN (4); - KEEP(*(.init)); + KEEP(*(.exceptions)); + . = ALIGN (4); + *(.init); . = ALIGN (4); *(.rodata .rodata.*); . = ALIGN (4); @@ -73,10 +74,10 @@ SECTIONS *(.ctors); . = ALIGN(4); *(.dtors); + _etext = .; + PROVIDE (__etext = .); } > ram - _etext = .; - PROVIDE (__etext = .); .data : AT (_etext) { @@ -98,8 +99,8 @@ SECTIONS } > ram /* - * Allocated stack at the end of bss section. - * Data heap is allocate at end of stack. + * Allocate stack at the end of bss section. + * Data heap is allocated at end of stack. */ PROVIDE (__stack_start = .);