Merge pull request #36 from foogod/ld_patch

Fix linker script handling of irom/irom0 segments
This commit is contained in:
Angus Gratton 2015-08-28 10:00:19 +10:00
commit 2fe1b7a00d

View file

@ -267,8 +267,8 @@ SECTIONS
(except for libgcc which is matched above.) (except for libgcc which is matched above.)
*/ */
*(.literal .text .literal.* .text.*) *(.literal .text .literal.* .text.*)
/* SDK libraries expect ICACHE_FLASH_ATTR/etc functions to be loaded explicitly as IROM */ /* Anything explicitly marked as "irom" or "irom0" should go here */
*sdklib*:*(.irom.* .irom.*.* .irom0.*) *(.irom.* .irom.*.* .irom0.*)
_irom0_text_end = ABSOLUTE(.); _irom0_text_end = ABSOLUTE(.);
} >irom0_0_seg :irom0_0_phdr } >irom0_0_seg :irom0_0_phdr