platformio / platform-espressif8266

Espressif 8266: development platform for PlatformIO
https://registry.platformio.org/platforms/platformio/espressif8266
Apache License 2.0
325 stars 219 forks source link

linker script does not put .cc files into flash #140

Closed hkahl closed 5 years ago

hkahl commented 5 years ago

In tools/sdk/ld/eagle.app.v6.common.ld.h files matching .c.o and .cpp .o are considered. The suffix ".cc" is a also pretty common for c++ files. Currently, if .cc is used somewhere, this code goes to iram by default which is quickly filled and linking fails. I suggest adding a line like this:

*.cc.o(.literal*, .text*)

to the linker script so that .cc file go to flash by default like .cpp files.

ivankravets commented 5 years ago

Please move this issue to https://github.com/esp8266/Arduino/issues