Fix issue with linker script allowing data section to overflow flash

This commit is contained in:
Doug Brown 2023-06-23 19:59:13 -07:00 committed by Doug Brown
parent 7a77d583da
commit 7c368aa816
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 :
{ {