1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-07-27 18:02:17 +03:00

Fix placement of code into RAM, enable gc-sections

Related to #856, #826, #803, #734
This commit is contained in:
Ivan Grokhotkov
2015-10-06 01:45:38 +03:00
parent 1ea2722d9d
commit fe04165bbe
3 changed files with 8 additions and 7 deletions

View File

@ -67,7 +67,7 @@ typedef enum {
#ifdef ICACHE_FLASH
#define ICACHE_FLASH_ATTR __attribute__((section(".irom0.text")))
#define ICACHE_RAM_ATTR __attribute__((section(".text")))
#define ICACHE_RAM_ATTR __attribute__((section(".iram.text")))
#define ICACHE_RODATA_ATTR __attribute__((section(".irom.text")))
#else
#define ICACHE_FLASH_ATTR