Fixed wrong section size symbols.

This commit is contained in:
Thomas Doerfler
2008-09-22 11:30:51 +00:00
parent 5aeed173cf
commit a948e85de5
4 changed files with 34 additions and 20 deletions

View File

@@ -1,3 +1,7 @@
2008-09-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
* startup/linkcmds.base: Fixed wrong section size symbols.
2008-09-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, include/bsp.h, network_5200/network.c, start/start.S,

View File

@@ -131,10 +131,9 @@ SECTIONS {
. = ALIGN (bsp_section_align);
/*
* BSP: End and size of text section
* BSP: End of text section
*/
bsp_section_text_end = .;
bsp_section_text_size = bsp_section_text_end - bsp_section_text_start;
} > RAM
.data : {
@@ -219,10 +218,9 @@ SECTIONS {
PROVIDE (edata = .);
/*
* BSP: End and size of data section
* BSP: End of data section
*/
bsp_section_data_end = .;
bsp_section_data_size = bsp_section_data_end - bsp_section_data_start;
} > RAM
.sbss : {
@@ -254,25 +252,30 @@ SECTIONS {
PROVIDE (end = .);
/*
* BSP: End and size of bss section
* BSP: End of bss section
*/
bsp_section_bss_end = .;
bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_start;
} > RAM
/*
* BSP: Section sizes
*/
bsp_section_text_size = bsp_section_text_end - bsp_section_text_start;
bsp_section_data_size = bsp_section_data_end - bsp_section_data_start;
bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_start;
/*
* BSP: Interrupt stack
*/
bsp_interrupt_stack_start = .;
bsp_interrupt_stack_start = bsp_section_bss_end;
bsp_interrupt_stack_end = bsp_interrupt_stack_start + 32k;
bsp_interrupt_stack_size = bsp_interrupt_stack_end - bsp_interrupt_stack_start;
. = bsp_interrupt_stack_end;
/*
* BSP: Work area start
*/
bsp_work_area_start = .;
WorkAreaBase = .;
bsp_work_area_start = bsp_interrupt_stack_end;
WorkAreaBase = bsp_work_area_start;
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }

View File

@@ -1,3 +1,7 @@
2008-09-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
* startup/linkcmds.base: Fixed wrong section size symbols.
2008-09-20 Joel Sherrill <joel.sherrill@oarcorp.com>
* Makefile.am, include/bsp.h, start/start.S, startup/bspstart.c,

View File

@@ -137,10 +137,9 @@ SECTIONS {
. = ALIGN (bsp_section_align);
/*
* BSP: End and size of text section
* BSP: End of text section
*/
bsp_section_text_end = .;
bsp_section_text_size = bsp_section_text_end - bsp_section_text_start;
} > RAM
.data : {
@@ -225,10 +224,9 @@ SECTIONS {
PROVIDE (edata = .);
/*
* BSP: End and size of data section
* BSP: End of data section
*/
bsp_section_data_end = .;
bsp_section_data_size = bsp_section_data_end - bsp_section_data_start;
} > RAM
.sbss : {
@@ -260,25 +258,30 @@ SECTIONS {
PROVIDE (end = .);
/*
* BSP: End and size of bss section
* BSP: End of bss section
*/
bsp_section_bss_end = .;
bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_start;
} > RAM
/*
* BSP: Section sizes
*/
bsp_section_text_size = bsp_section_text_end - bsp_section_text_start;
bsp_section_data_size = bsp_section_data_end - bsp_section_data_start;
bsp_section_bss_size = bsp_section_bss_end - bsp_section_bss_start;
/*
* BSP: Interrupt stack
*/
bsp_interrupt_stack_start = .;
bsp_interrupt_stack_start = bsp_section_bss_end;
bsp_interrupt_stack_end = bsp_interrupt_stack_start + 32k;
bsp_interrupt_stack_size = bsp_interrupt_stack_end - bsp_interrupt_stack_start;
. = bsp_interrupt_stack_end;
/*
* BSP: Work area start
*/
bsp_work_area_start = .;
WorkAreaBase = .;
bsp_work_area_start = bsp_interrupt_stack_end;
WorkAreaBase = bsp_work_area_start;
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }