diff --git a/c/src/lib/libbsp/powerpc/gen5200/ChangeLog b/c/src/lib/libbsp/powerpc/gen5200/ChangeLog index 549483143d..3ba328df10 100644 --- a/c/src/lib/libbsp/powerpc/gen5200/ChangeLog +++ b/c/src/lib/libbsp/powerpc/gen5200/ChangeLog @@ -1,3 +1,7 @@ +2008-09-22 Sebastian Huber + + * startup/linkcmds.base: Fixed wrong section size symbols. + 2008-09-20 Joel Sherrill * Makefile.am, include/bsp.h, network_5200/network.c, start/start.S, diff --git a/c/src/lib/libbsp/powerpc/gen5200/startup/linkcmds.base b/c/src/lib/libbsp/powerpc/gen5200/startup/linkcmds.base index 88d366f4e1..5458000ea2 100644 --- a/c/src/lib/libbsp/powerpc/gen5200/startup/linkcmds.base +++ b/c/src/lib/libbsp/powerpc/gen5200/startup/linkcmds.base @@ -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) } diff --git a/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog b/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog index 20d699c403..3ba581fedc 100644 --- a/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog +++ b/c/src/lib/libbsp/powerpc/gen83xx/ChangeLog @@ -1,3 +1,7 @@ +2008-09-22 Sebastian Huber + + * startup/linkcmds.base: Fixed wrong section size symbols. + 2008-09-20 Joel Sherrill * Makefile.am, include/bsp.h, start/start.S, startup/bspstart.c, diff --git a/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.base b/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.base index 946dfd4679..d5dc1debcd 100644 --- a/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.base +++ b/c/src/lib/libbsp/powerpc/gen83xx/startup/linkcmds.base @@ -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) }