Reduce unintialized_ram overhead to 0 in most cases (#1200)

Use GNU LD MAX() to ensure the uninitialized RAM portions are after the
OTA region.  For most apps this already happens, so there will be no
overhead added.
This commit is contained in:
Earle F. Philhower, III 2023-02-16 18:23:15 -08:00 committed by GitHub
parent b473139758
commit 97e787e48a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -218,11 +218,11 @@ SECTIONS
} > RAM
/* At most one of the following two will be engaged, depending on the SDK version */
.uninitialized_ram BLOCK(16k) (NOLOAD) : {
.uninitialized_ram MAX(0x20003000, .) (NOLOAD) : {
*(.uninitialized_ram*)
} > RAM
.uninitialized_data BLOCK(16k) (NOLOAD) : {
.uninitialized_data MAX(0x20003000, .) (NOLOAD) : {
*(.uninitialized_data*)
} > RAM