File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ SECTIONS
102102
103103 PROVIDE (__data_end = .);
104104 PROVIDE (__data_init_end = LOADADDR (.data ));
105- } > ram1 AT > rom
105+ } > ram AT > rom
106106
107107 /* Data that needs to be initialized to 0 */
108108 .bss (NOLOAD) :
@@ -117,15 +117,31 @@ SECTIONS
117117 . = ALIGN (4 );
118118
119119 PROVIDE (__bss_end = .);
120- } > ram1
120+ } > ram
121121
122122 /* Heap segment */
123123 .heap (NOLOAD) :
124124 {
125125 . = ALIGN (4 );
126126 PROVIDE (__heap_start = .);
127- PROVIDE (__heap_end = (ORIGIN (ram1) + LENGTH (ram1)));
128- } > ram1
127+ PROVIDE (__heap_end = (ORIGIN (ram) + LENGTH (ram)));
128+ } > ram
129+
130+ /* additional ram segment */
131+ DATA_SECTION (ram1, ram1, rom)
132+ BSS_SECTION (ram1, ram1)
133+
134+ /* create a table to initialize the data sections on a secondary memory */
135+ DATA_MULTISECTION_TABLE (
136+ DATA_SECTION_ENTRY (ram1)
137+ DATA_SECTION_ENTRY_END ()
138+ ) > rom
139+
140+ /* create a table to initialize the bss sections on a secondary memory */
141+ BSS_MULTISECTION_TABLE (
142+ BSS_SECTION_ENTRY (ram1)
143+ BSS_SECTION_ENTRY_END ()
144+ ) > rom
129145
130146 /* Remove information from the standard libraries */
131147 /DISCARD/ :
Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ SECTIONS
102102
103103 PROVIDE (__data_end = .);
104104 PROVIDE (__data_init_end = LOADADDR (.data ));
105- } > ram1 AT > rom
105+ } > ram AT > rom
106106
107107 /* Data that needs to be initialized to 0 */
108108 .bss (NOLOAD) :
@@ -117,15 +117,31 @@ SECTIONS
117117 . = ALIGN (4 );
118118
119119 PROVIDE (__bss_end = .);
120- } > ram1
120+ } > ram
121121
122122 /* Heap segment */
123123 .heap (NOLOAD) :
124124 {
125125 . = ALIGN (4 );
126126 PROVIDE (__heap_start = .);
127- PROVIDE (__heap_end = (ORIGIN (ram1) + LENGTH (ram1)));
128- } > ram1
127+ PROVIDE (__heap_end = (ORIGIN (ram) + LENGTH (ram)));
128+ } > ram
129+
130+ /* additional ram segment */
131+ DATA_SECTION (ram1, ram1, rom)
132+ BSS_SECTION (ram1, ram1)
133+
134+ /* create a table to initialize the data sections on a secondary memory */
135+ DATA_MULTISECTION_TABLE (
136+ DATA_SECTION_ENTRY (ram1)
137+ DATA_SECTION_ENTRY_END ()
138+ ) > rom
139+
140+ /* create a table to initialize the bss sections on a secondary memory */
141+ BSS_MULTISECTION_TABLE (
142+ BSS_SECTION_ENTRY (ram1)
143+ BSS_SECTION_ENTRY_END ()
144+ ) > rom
129145
130146 /* Remove information from the standard libraries */
131147 /DISCARD/ :
Original file line number Diff line number Diff line change @@ -105,7 +105,7 @@ SECTIONS
105105
106106 PROVIDE (__data_end = .);
107107 PROVIDE (__data_init_end = LOADADDR (.data ));
108- } > ram1 AT > rom
108+ } > ram AT > rom
109109
110110 /* Data that needs to be initialized to 0 */
111111 .bss (NOLOAD) :
@@ -120,15 +120,31 @@ SECTIONS
120120 . = ALIGN (4 );
121121
122122 PROVIDE (__bss_end = .);
123- } > ram1
123+ } > ram
124124
125125 /* Heap segment */
126126 .heap (NOLOAD) :
127127 {
128128 . = ALIGN (4 );
129129 PROVIDE (__heap_start = .);
130- PROVIDE (__heap_end = (ORIGIN (ram1) + LENGTH (ram1)));
131- } > ram1
130+ PROVIDE (__heap_end = (ORIGIN (ram) + LENGTH (ram)));
131+ } > ram
132+
133+ /* additional ram segment */
134+ DATA_SECTION (ram1, ram1, rom)
135+ BSS_SECTION (ram1, ram1)
136+
137+ /* create a table to initialize the data sections on a secondary memory */
138+ DATA_MULTISECTION_TABLE (
139+ DATA_SECTION_ENTRY (ram1)
140+ DATA_SECTION_ENTRY_END ()
141+ ) > rom
142+
143+ /* create a table to initialize the bss sections on a secondary memory */
144+ BSS_MULTISECTION_TABLE (
145+ BSS_SECTION_ENTRY (ram1)
146+ BSS_SECTION_ENTRY_END ()
147+ ) > rom
132148
133149 /* Remove information from the standard libraries */
134150 /DISCARD/ :
Original file line number Diff line number Diff line change @@ -117,13 +117,21 @@ SECTIONS
117117 PROVIDE (__heap_end = (ORIGIN (ram) + LENGTH (ram)));
118118 } > ram
119119
120- .ram1 :
121- {
122- . = ALIGN (4 );
123- *(SORT_BY_ALIGNMENT (.ramfunc ))
124- *(SORT_BY_ALIGNMENT (.ramfunc .*))
125- . = ALIGN (4 );
126- } > ram1
120+ /* additional ram segment */
121+ DATA_SECTION (ram1, ram1, rom)
122+ BSS_SECTION (ram1, ram1)
123+
124+ /* create a table to initialize the data sections on a secondary memory */
125+ DATA_MULTISECTION_TABLE (
126+ DATA_SECTION_ENTRY (ram1)
127+ DATA_SECTION_ENTRY_END ()
128+ ) > rom
129+
130+ /* create a table to initialize the bss sections on a secondary memory */
131+ BSS_MULTISECTION_TABLE (
132+ BSS_SECTION_ENTRY (ram1)
133+ BSS_SECTION_ENTRY_END ()
134+ ) > rom
127135
128136 /* Remove information from the standard libraries */
129137 /DISCARD/ :
You can’t perform that action at this time.
0 commit comments