Merge branch 'master' of ssh://git.gag.com/scm/git/fw/altos
[fw/altos] / src / stmf0 / altos.ld
index 8f8933c6cc452b3769f741cf2bc615500cff4bb3..64e1d00cf0ab5b1aadebebdd389914a1d8d63c5e 100644 (file)
@@ -55,10 +55,16 @@ SECTIONS {
                ao_product.o(.romconfig*)
 
                *(.text*)       /* Executable code */
+       } > rom
+
+       .ARM.exidx : {
                *(.ARM.exidx* .gnu.linkonce.armexidx.*)
-               *(.rodata*)     /* Constants */
+       } > rom
 
+       .rodata : {
+               *(.rodata*)     /* Constants */
        } > rom
+
        __text_end__ = .;
 
        /* Boot data which must live at the start of ram so that
@@ -75,10 +81,10 @@ SECTIONS {
        /* Data -- relocated to RAM, but written to ROM
         */
        .data : {
-               __data_start__ = .;
+               _start__ = .;
                *(.data)        /* initialized data */
                . = ALIGN(4);
-               __data_end__ = .;
+               _end__ = .;
        } >ram AT>rom
 
        .bss : {