File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -73,32 +73,32 @@ SECTIONS
73
73
_etext = .; /* define a global symbol at end of code */
74
74
} >FLASH_FIRMWARE
75
75
76
- /* used by the startup to initialize data */
77
- _sidata = .;
78
-
79
76
/* This is the initialized data section
80
77
The program executes knowing that the data is in the RAM
81
78
but the loader puts the initial values in the FLASH (inidata).
82
79
It is one task of the startup to copy the initial values from FLASH to RAM. */
83
- .data : AT (_sidata)
80
+ .data :
84
81
{
85
82
. = ALIGN (4);
86
83
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
87
84
_ram_start = .; /* create a global symbol at ram start for garbage collector */
88
- *SORT_BY_ALIGNMENT(SORT_BY_NAME( .data) ) /* .data sections */
89
- *SORT_BY_ALIGNMENT(SORT_BY_NAME( .data*) ) /* .data* sections */
85
+ *( .data) /* .data sections */
86
+ *( .data*) /* .data* sections */
90
87
91
88
. = ALIGN (4);
92
89
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
93
- } >APP_RAM
90
+ } >APP_RAM AT > FLASH_FIRMWARE
91
+
92
+ /* used by the startup to initialize data */
93
+ _sidata = LOADADDR (.data);
94
94
95
95
/* Zero-initialized data section */
96
96
.bss :
97
97
{
98
98
. = ALIGN (4);
99
99
_sbss = .; /* define a global symbol at bss start; used by startup code */
100
- *SORT_BY_ALIGNMENT(SORT_BY_NAME( .bss) )
101
- *SORT_BY_ALIGNMENT(SORT_BY_NAME( .bss*) )
100
+ *( .bss)
101
+ *( .bss*)
102
102
*(COMMON)
103
103
104
104
. = ALIGN (4);
You can’t perform that action at this time.
0 commit comments