Fix IROM macro

This commit is contained in:
Angus Gratton 2015-06-08 17:58:10 +10:00
parent 2c46be9825
commit a476fb007e
2 changed files with 2 additions and 2 deletions

View file

@ -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))

View file

@ -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
}