Fix issue with linker script allowing data section to overflow flash

This commit is contained in:
Doug Brown 2023-08-06 20:35:27 -07:00 committed by Doug Brown
parent 78c4068071
commit 34f2364840
2 changed files with 4 additions and 4 deletions

View File

@ -123,7 +123,7 @@ SECTIONS
__etext = .; __etext = .;
.data : AT (__etext) .data : ALIGN(4)
{ {
__data_start__ = .; __data_start__ = .;
*(vtable) *(vtable)
@ -155,7 +155,7 @@ SECTIONS
/* All data end */ /* All data end */
__data_end__ = .; __data_end__ = .;
} > RAM } > RAM AT > FLASH
.bss : .bss :
{ {

View File

@ -123,7 +123,7 @@ SECTIONS
__etext = .; __etext = .;
.data : AT (__etext) .data : ALIGN(4)
{ {
__data_start__ = .; __data_start__ = .;
*(vtable) *(vtable)
@ -155,7 +155,7 @@ SECTIONS
/* All data end */ /* All data end */
__data_end__ = .; __data_end__ = .;
} > RAM } > RAM AT > FLASH
.bss : .bss :
{ {