From a01f9b4708f35a0a97541450c1f703c73967d70c Mon Sep 17 00:00:00 2001 From: aronson Date: Sat, 12 Oct 2024 13:41:26 -0500 Subject: [PATCH] Align EWRAM and IWRAM data-filled sections to 4 bytes (#5512) --- ld_script.ld | 2 ++ ld_script_modern.ld | 2 ++ 2 files changed, 4 insertions(+) diff --git a/ld_script.ld b/ld_script.ld index a0c069c96574..6c8467a002b1 100644 --- a/ld_script.ld +++ b/ld_script.ld @@ -18,6 +18,7 @@ SECTIONS { { __ewram_start = .; *(.ewram*) + . = ALIGN(4); __ewram_end = .; } > EWRAM @@ -38,6 +39,7 @@ SECTIONS { { __iwram_start = .; *(.iwram*); + . = ALIGN(4); __iwram_end = .; } > IWRAM diff --git a/ld_script_modern.ld b/ld_script_modern.ld index fd35a1ca31d8..11e53db63df9 100644 --- a/ld_script_modern.ld +++ b/ld_script_modern.ld @@ -19,6 +19,7 @@ SECTIONS { { __ewram_start = .; *(.ewram*) + . = ALIGN(4); __ewram_end = .; } > EWRAM @@ -34,6 +35,7 @@ SECTIONS { { __iwram_start = .; *(.iwram*); + . = ALIGN(4); __iwram_end = .; } > IWRAM