From: batt Date: Thu, 18 Oct 2007 09:21:58 +0000 (+0000) Subject: Remove duplicate license; Add support for gc-sections to save memory. X-Git-Tag: 1.0.0~351 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=eaf27408d73b9af66df0c903232d66ef01890d25;p=bertos.git Remove duplicate license; Add support for gc-sections to save memory. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@890 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/cpu/arm/scripts/at91sam7s256_ram.ld b/cpu/arm/scripts/at91sam7s256_ram.ld index 7700e99f..63f2c7d2 100644 --- a/cpu/arm/scripts/at91sam7s256_ram.ld +++ b/cpu/arm/scripts/at91sam7s256_ram.ld @@ -38,46 +38,6 @@ * */ -/** - * \file - * - * - * \version $Id: sysirq_at91.c 18273 2007-10-11 14:53:02Z batt $ - * - * \author Daniele Basile - * - * \brief Script linker for Atmel AT91 SAM7S256 processors. - * - */ - ENTRY(_init) SEARCH_DIR(.) @@ -110,15 +70,13 @@ SECTIONS { .text : { - * (.vectors); + KEEP(*(.vectors)); . = ALIGN (4); - * (.init); + KEEP(*(.init)); . = ALIGN (4); - * (.rodata); + *(.rodata .rodata.*); . = ALIGN (4); - * (.rodata*); - . = ALIGN (4); - * (.text); + *(.text .text.*); . = ALIGN (4); *(.glue_7t); . = ALIGN(4); @@ -132,7 +90,7 @@ SECTIONS .data : AT (__etext) { PROVIDE (__data_start = .); - * (.data) + *(.data .data.*) . = ALIGN (4); _edata = .; PROVIDE (__data_end = .); @@ -141,16 +99,17 @@ SECTIONS .bss : { PROVIDE (__bss_start = .); - *(.bss) + *(.bss .bss.*) + . = ALIGN(4); *(COMMON) . = ALIGN(4); PROVIDE (__bss_end = .); } > ram -/* - * Allocate 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 allocate at end of stack. + */ PROVIDE (__stack_start = .); PROVIDE (__stack_fiq_start = .); @@ -181,5 +140,4 @@ SECTIONS PROVIDE (__stack_end = .); PROVIDE (__heap_start = .); - } diff --git a/cpu/arm/scripts/at91sam7s256_rom.ld b/cpu/arm/scripts/at91sam7s256_rom.ld index 26540d07..dcb407fd 100644 --- a/cpu/arm/scripts/at91sam7s256_rom.ld +++ b/cpu/arm/scripts/at91sam7s256_rom.ld @@ -38,46 +38,6 @@ * */ -/** - * \file - * - * - * \version $Id: sysirq_at91.c 18273 2007-10-11 14:53:02Z batt $ - * - * \author Daniele Basile - * - * \brief Script linker for Atmel AT91 SAM7S256 processors. - * - */ - ENTRY(_init) SEARCH_DIR(.) @@ -110,15 +70,13 @@ SECTIONS { .text : { - * (.vectors); + KEEP(*(.vectors)); . = ALIGN (4); - * (.init); + KEEP(*(.init)); . = ALIGN (4); - * (.rodata); + *(.rodata .rodata.*); . = ALIGN (4); - * (.rodata*); - . = ALIGN (4); - * (.text); + *(.text .text.*); . = ALIGN (4); *(.glue_7t); . = ALIGN(4); @@ -132,7 +90,7 @@ SECTIONS .data : AT (__etext) { PROVIDE (__data_start = .); - * (.data) + *(.data .data.*) . = ALIGN (4); _edata = .; PROVIDE (__data_end = .); @@ -141,16 +99,17 @@ SECTIONS .bss : { PROVIDE (__bss_start = .); - *(.bss) + *(.bss .bss.*) + . = ALIGN(4); *(COMMON) . = ALIGN(4); PROVIDE (__bss_end = .); } > ram -/* - * Allocate 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 allocate at end of stack. + */ PROVIDE (__stack_start = .); PROVIDE (__stack_fiq_start = .); @@ -181,5 +140,4 @@ SECTIONS PROVIDE (__stack_end = .); PROVIDE (__heap_start = .); - }