Add C++ sections.
authorbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 28 Mar 2010 12:26:22 +0000 (12:26 +0000)
committerbatt <batt@38d2e660-2303-0410-9eaa-f027e97ec537>
Sun, 28 Mar 2010 12:26:22 +0000 (12:26 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3286 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/arm/scripts/at91sam7_ram.ld
bertos/cpu/arm/scripts/at91sam7_rom.ld

index 1dfabd0991e1f1b79d5f1398c8d49277be4bd596..be00e91aecfdba968b50d6609cb1edc8f6660562 100644 (file)
@@ -65,9 +65,14 @@ SECTIONS
                *(.text .text.*);
                . = ALIGN (4);
                *(.glue_7t);
-               . = ALIGN(4);
-               *(.glue_7);
-               . = ALIGN(4);
+               . = ALIGN(4);
+               *(.glue_7);
+               . = ALIGN(4);
+               *(.gcc*);
+               . = ALIGN(4);
+               *(.ctors);
+               . = ALIGN(4);
+               *(.dtors);
        } > ram
 
        _etext = .;
index 3088e269bb9a08b765ab9a4d00b9ff33e3b36cb5..5eb414571604878b47b5e9c07d46a93e125db86c 100644 (file)
@@ -65,9 +65,14 @@ SECTIONS
                *(.text .text.*);
                . = ALIGN (4);
                *(.glue_7t);
-               . = ALIGN(4);
-               *(.glue_7);
-               . = ALIGN(4);
+               . = ALIGN(4);
+               *(.glue_7);
+               . = ALIGN(4);
+               *(.gcc*);
+               . = ALIGN(4);
+               *(.ctors);
+               . = ALIGN(4);
+               *(.dtors);
        } > rom
 
        _etext = .;