From aa41bf89026b98ade9a4f26d2db531ad5747f684 Mon Sep 17 00:00:00 2001 From: batt Date: Sun, 28 Mar 2010 12:26:22 +0000 Subject: [PATCH] Add C++ sections. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@3286 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/cpu/arm/scripts/at91sam7_ram.ld | 11 ++++++++--- bertos/cpu/arm/scripts/at91sam7_rom.ld | 11 ++++++++--- 2 files changed, 16 insertions(+), 6 deletions(-) diff --git a/bertos/cpu/arm/scripts/at91sam7_ram.ld b/bertos/cpu/arm/scripts/at91sam7_ram.ld index 1dfabd09..be00e91a 100644 --- a/bertos/cpu/arm/scripts/at91sam7_ram.ld +++ b/bertos/cpu/arm/scripts/at91sam7_ram.ld @@ -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 = .; diff --git a/bertos/cpu/arm/scripts/at91sam7_rom.ld b/bertos/cpu/arm/scripts/at91sam7_rom.ld index 3088e269..5eb41457 100644 --- a/bertos/cpu/arm/scripts/at91sam7_rom.ld +++ b/bertos/cpu/arm/scripts/at91sam7_rom.ld @@ -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 = .; -- 2.25.1