diff --git a/core/include/common_macros.h b/core/include/common_macros.h index b72229f..5ac611a 100644 --- a/core/include/common_macros.h +++ b/core/include/common_macros.h @@ -26,7 +26,7 @@ Important to note: IROM flash can only be accessed via 32-bit word aligned reads. It's up to the user of this attribute to ensure this. */ -#define IROM __attribute__((section(".irom0"))) const +#define IROM __attribute__((section(".irom0.literal"))) const #define INLINED inline static __attribute__((always_inline)) __attribute__((unused)) diff --git a/ld/eagle.app.v6.ld b/ld/eagle.app.v6.ld index 7cafba3..42fac11 100644 --- a/ld/eagle.app.v6.ld +++ b/ld/eagle.app.v6.ld @@ -212,7 +212,7 @@ SECTIONS .irom0.text : ALIGN(4) { _irom0_text_start = ABSOLUTE(.); - *(.literal .text .literal.* .text.*.irom0.literal .irom.literal .irom.text.literal .irom0.text .irom.text) + *(.literal .text .literal.* .text.* .irom0.literal .irom.literal .irom.text.literal .irom0.text .irom.text) _irom0_text_end = ABSOLUTE(.); } >irom0_0_seg :irom0_0_phdr }