mirror of
https://github.com/espressif/esp-idf.git
synced 2026-08-16 21:55:10 +03:00
DRAM_STR placed its backing string in a variable named __c in a section named after DRAM_ATTR's __COUNTER__ value. Under LTO, when translation units are merged, two such variables from different units could collide on the same name and section, producing a "section type conflict" error. Derive both the variable name and a dedicated .dram1.str subsection from a single __COUNTER__ value so each DRAM_STR expansion is unique after merging. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>