<issue_start><issue_comment>Title: '.text' will not fit in iram1_0_seg .. link fails on IoT demo example
username_0: Now that I have a complete toolchain running in FreeBSD 10.1, I tried to build the IoT demo in the sdk...

The build failed because of over run in the iram1_0_seg... by ~16K .. maps out to 4010bf98 for ~49K in the iram1 text segment.. 

I have posted a copy of the build and map file generated at: http://pastebin.com/egnFgqD9

any suggestions on how to trim the fat here, greatly appreciated..
<issue_comment>username_0: I found that all the functions in the IoT example have the ICACHE_FLASH_ATTR added, but that alone did not work... 

I have found that what I was missing is the -DICACHE_FLASH needed by the compiler:
%.o: %.c
        $(XT_GCC) -DICACHE_FLASH -mlongcalls $(ILIST) -c $< -o $@

Now it compiles, and links, and appears to be happy.. :)<issue_closed>