move RAM_FUNC functions into a distinct section in RAM
[bertos.git] / bertos / cpu / arm / scripts / arm7tdmi_rom.ld
index 54d470e027b5c74b4c86fe339c7d2250b0aa7089..8c60ed9fc3de18eda393b6752f69e1b66107e873 100644 (file)
@@ -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);
@@ -81,6 +82,9 @@ SECTIONS
        .data : AT (_etext)
        {
                PROVIDE (__data_start = .);
+               . = ALIGN (4);
+               *(.ramfunc)
+               . = ALIGN (4);
                *(.data .data.*)
                . = ALIGN (4);
                _edata = .;