From eaf27408d73b9af66df0c903232d66ef01890d25 Mon Sep 17 00:00:00 2001 From: batt Date: Thu, 18 Oct 2007 09:21:58 +0000 Subject: [PATCH] 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 --- cpu/arm/scripts/at91sam7s256_ram.ld | 64 +++++------------------------ cpu/arm/scripts/at91sam7s256_rom.ld | 64 +++++------------------------ 2 files changed, 22 insertions(+), 106 deletions(-) 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 = .); - } -- 2.25.1