@@ -41,7 +41,7 @@ SECTIONS
41
41
42
42
}> FLASH
43
43
/***** DATA_FLASH memory section allocations ******/
44
- .data_flash.startof (READONLY) :
44
+ .data_flash.startof :
45
45
{
46
46
__ddsc_DATA_FLASH_START = .;
47
47
@@ -69,7 +69,7 @@ SECTIONS
69
69
__ram_from_data_flash$$Limit = .;
70
70
}> RAM AT > DATA_FLASH
71
71
72
- __data_flash_readonly$$ (READONLY) :
72
+ __data_flash_readonly$$ :
73
73
{
74
74
__data_flash_readonly$$Base = .;
75
75
/* section.data_flash.readonly */
@@ -85,28 +85,29 @@ SECTIONS
85
85
*(.data_flash_noinit)
86
86
__data_flash_noinit$$Limit = .;
87
87
}> DATA_FLASH
88
- .data_flash.endof ALIGN (.,512) (READONLY) :
88
+
89
+ .data_flash.endof :
89
90
{
91
+ . = ALIGN (512);
90
92
__ddsc_DATA_FLASH_END = .;
91
93
92
94
}> DATA_FLASH
93
-
94
95
/***** FLASH memory section allocations ******/
95
- .flash.startof (READONLY) :
96
+ .flash.startof :
96
97
{
97
98
__ddsc_FLASH_START = .;
98
99
99
100
}> FLASH_GAP
100
101
/* MCU vector table */
101
- __flash_vectors$$ (READONLY) :
102
+ __flash_vectors$$ :
102
103
{
103
104
__flash_vectors$$Base = .; _VECTORS = .;
104
105
KEEP(*(.fixed_vectors))
105
106
KEEP(*(.application_vectors))
106
107
__flash_vectors$$Limit = .;
107
108
}> FLASH_GAP
108
109
/* Sections that can be used to fill flash gap */
109
- __flash_readonly_gap$$ (READONLY) :
110
+ __flash_readonly_gap$$ :
110
111
{
111
112
__flash_readonly_gap$$Base = .;
112
113
/* section.flash.readonly_gap */
@@ -173,7 +174,7 @@ SECTIONS
173
174
174
175
}> RAM
175
176
176
- __flash_readonly$$ (READONLY) :
177
+ __flash_readonly$$ :
177
178
{
178
179
__flash_readonly$$Base = .;
179
180
/* section.flash.readonly */
@@ -186,7 +187,7 @@ SECTIONS
186
187
KEEP(*(.version))
187
188
__flash_readonly$$Limit = .;
188
189
}> FLASH
189
- __flash_ctor$$ (READONLY) :
190
+ __flash_ctor$$ :
190
191
{
191
192
192
193
*crtbegin.o (.ctors)
@@ -201,35 +202,35 @@ SECTIONS
201
202
*(.dtors)
202
203
203
204
}> FLASH
204
- __flash_preinit_array$$ (READONLY) :
205
+ __flash_preinit_array$$ :
205
206
{
206
207
__preinit_array_start = .;
207
208
KEEP(*(.preinit_array))
208
209
__preinit_array_end = .;
209
210
}> FLASH
210
- __flash_.got$$ (READONLY) :
211
+ __flash_.got$$ :
211
212
{
212
213
213
214
*(.got.plt)
214
215
*(.got)
215
216
216
217
}> FLASH
217
- __flash_init_array$$ (READONLY) :
218
+ __flash_init_array$$ :
218
219
{
219
220
__init_array_start = .;
220
221
KEEP(*(SORT(.init_array.*)))
221
222
KEEP(*(.init_array))
222
223
__init_array_end = .;
223
224
}> FLASH
224
- __flash_fini_array$$ (READONLY) :
225
+ __flash_fini_array$$ :
225
226
{
226
227
__fini_array_start = .;
227
228
KEEP(*(SORT(.fini_array.*)))
228
229
KEEP(*(.fini_array))
229
230
__fini_array_end = .;
230
231
}> FLASH
231
232
/* Discard exception tables */
232
- /DISCARD/ (READONLY) :
233
+ /DISCARD/ :
233
234
{
234
235
235
236
*(.ARM.extab*)
@@ -239,88 +240,89 @@ SECTIONS
239
240
240
241
}> FLASH
241
242
/* Dummy section to hold required exidx labels */
242
- __flash_arm.exidx$$ (READONLY) :
243
+ __flash_arm.exidx$$ :
243
244
{
244
245
__exidx_start = .;
245
246
__exidx_end = .;
246
247
}> FLASH
247
- .flash.endof ALIGN (.,512) (READONLY) :
248
+
249
+ .flash.endof :
248
250
{
251
+ . = ALIGN (512);
249
252
__ddsc_FLASH_END = .;
250
253
251
254
}> FLASH
252
-
253
255
/***** OPTION_SETTING_OFS0 memory section allocations ******/
254
- .option_setting_ofs0.startof (READONLY) :
256
+ .option_setting_ofs0.startof :
255
257
{
256
258
__ddsc_OPTION_SETTING_OFS0_START = .;
257
259
258
260
}> OPTION_SETTING_OFS0
259
261
/* Option Function Select Register 0 */
260
- __option_setting_ofs0_reg$$ (READONLY) :
262
+ __option_setting_ofs0_reg$$ :
261
263
{
262
264
__option_setting_ofs0_reg$$Base = .;
263
265
KEEP(*(.option_setting_ofs0))
264
266
__option_setting_ofs0_reg$$Limit = .;
265
267
}> OPTION_SETTING_OFS0
266
- .option_setting_ofs0.endof (READONLY) :
268
+ .option_setting_ofs0.endof :
267
269
{
268
270
__ddsc_OPTION_SETTING_OFS0_END = .;
269
271
270
272
}> OPTION_SETTING_OFS0
271
273
272
274
/***** OPTION_SETTING_OFS1 memory section allocations ******/
273
- .option_setting_ofs1.startof (READONLY) :
275
+ .option_setting_ofs1.startof :
274
276
{
275
277
__ddsc_OPTION_SETTING_OFS1_START = .;
276
278
277
279
}> OPTION_SETTING_OFS1
278
280
/* Option Function Select Register 1 */
279
- __option_setting_ofs1_reg$$ (READONLY) :
281
+ __option_setting_ofs1_reg$$ :
280
282
{
281
283
__option_setting_ofs1_reg$$Base = .;
282
284
KEEP(*(.option_setting_ofs1))
283
285
__option_setting_ofs1_reg$$Limit = .;
284
286
}> OPTION_SETTING_OFS1
285
- .option_setting_ofs1.endof (READONLY) :
287
+ .option_setting_ofs1.endof :
286
288
{
287
289
__ddsc_OPTION_SETTING_OFS1_END = .;
288
290
289
291
}> OPTION_SETTING_OFS1
290
292
291
293
/***** OPTION_SETTING_SECMPU memory section allocations ******/
292
- .option_setting_secmpu.startof (READONLY) :
294
+ .option_setting_secmpu.startof :
293
295
{
294
296
__ddsc_OPTION_SETTING_SECMPU_START = .;
295
297
296
298
}> OPTION_SETTING_SECMPU
297
299
/* Security MPU Registers */
298
- __option_setting_secmpu_reg$$ (READONLY) :
300
+ __option_setting_secmpu_reg$$ :
299
301
{
300
302
__option_setting_secmpu_reg$$Base = .;
301
303
KEEP(*(.option_setting_secmpu))
302
304
__option_setting_secmpu_reg$$Limit = .;
303
305
}> OPTION_SETTING_SECMPU
304
- .option_setting_secmpu.endof (READONLY) :
306
+ .option_setting_secmpu.endof :
305
307
{
306
308
__ddsc_OPTION_SETTING_SECMPU_END = .;
307
309
308
310
}> OPTION_SETTING_SECMPU
309
311
310
312
/***** OPTION_SETTING_OSIS memory section allocations ******/
311
- .option_setting_osis.startof (READONLY) :
313
+ .option_setting_osis.startof :
312
314
{
313
315
__ddsc_OPTION_SETTING_OSIS_START = .;
314
316
315
317
}> OPTION_SETTING_OSIS
316
318
/* OCD/Serial Programmer ID setting register */
317
- __option_setting_osis_reg$$ (READONLY) :
319
+ __option_setting_osis_reg$$ :
318
320
{
319
321
__option_setting_osis_reg$$Base = .;
320
322
KEEP(*(.option_setting_osis))
321
323
__option_setting_osis_reg$$Limit = .;
322
324
}> OPTION_SETTING_OSIS
323
- .option_setting_osis.endof (READONLY) :
325
+ .option_setting_osis.endof :
324
326
{
325
327
__ddsc_OPTION_SETTING_OSIS_END = .;
326
328
0 commit comments