@@ -17,7 +17,7 @@ _minimum_stack_size = 2K;
1717_minimum_heap_size = 16K;
1818
1919/* top end of the stack */
20- _estack = ORIGIN (RAM ) + LENGTH (RAM );
20+ _stack_end = ORIGIN (RAM ) + LENGTH (RAM );
2121
2222/* RAM extents for the garbage collector */
2323_ram_end = ORIGIN (RAM ) + LENGTH (RAM );
@@ -47,8 +47,8 @@ SECTIONS
4747 /* *(.glue_7t) */ /* glue thumb to arm code */
4848
4949 . = ALIGN (4 );
50- _etext = .; /* define a global symbol at end of code */
51- _sidata = _etext; /* This is used by the startup in order to initialize the .data secion */
50+ _text_end = .; /* define a global symbol at end of code */
51+ _data_start_init = _text_end; /* This is used by the startup in order to initialize the .data secion */
5252 } >FLASH_TEXT
5353
5454 /*
@@ -69,29 +69,29 @@ SECTIONS
6969 The program executes knowing that the data is in the RAM
7070 but the loader puts the initial values in the FLASH (inidata).
7171 It is one task of the startup to copy the initial values from FLASH to RAM. */
72- .data : AT ( _sidata )
72+ .data : AT ( _data_start_init )
7373 {
7474 . = ALIGN (4 );
75- _sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
75+ _data_start = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
7676 _ram_start = .; /* create a global symbol at ram start for garbage collector */
7777 *(.data ) /* .data sections */
7878 *(.data *) /* .data* sections */
7979
8080 . = ALIGN (4 );
81- _edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
81+ _data_end = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
8282 } >RAM
8383
8484 /* Uninitialized data section */
8585 .bss :
8686 {
8787 . = ALIGN (4 );
88- _sbss = .; /* define a global symbol at bss start; used by startup code */
88+ _bss_start = .; /* define a global symbol at bss start; used by startup code */
8989 *(.bss )
9090 *(.bss *)
9191 *(COMMON )
9292
9393 . = ALIGN (4 );
94- _ebss = .; /* define a global symbol at bss end; used by startup code */
94+ _bss_end = .; /* define a global symbol at bss end; used by startup code and GC */
9595 } >RAM
9696
9797 /* this is to define the start of the heap, and make sure we have a minimum size */
0 commit comments