@@ -1319,6 +1319,7 @@ function(zephyr_linker_sources location)
1319
1319
set (rom_sections_path "${snippet_base} /snippets-rom-sections.ld" )
1320
1320
set (ram_sections_path "${snippet_base} /snippets-ram-sections.ld" )
1321
1321
set (data_sections_path "${snippet_base} /snippets-data-sections.ld" )
1322
+ set (text_sections_path "${snippet_base} /snippets-text-sections.ld" )
1322
1323
set (rom_start_path "${snippet_base} /snippets-rom-start.ld" )
1323
1324
set (noinit_path "${snippet_base} /snippets-noinit.ld" )
1324
1325
set (rwdata_path "${snippet_base} /snippets-rwdata.ld" )
@@ -1339,6 +1340,7 @@ function(zephyr_linker_sources location)
1339
1340
file (WRITE ${rom_sections_path} "" )
1340
1341
file (WRITE ${ram_sections_path} "" )
1341
1342
file (WRITE ${data_sections_path} "" )
1343
+ file (WRITE ${text_sections_path} "" )
1342
1344
file (WRITE ${rom_start_path} "" )
1343
1345
file (WRITE ${noinit_path} "" )
1344
1346
file (WRITE ${rwdata_path} "" )
@@ -1362,6 +1364,8 @@ function(zephyr_linker_sources location)
1362
1364
set (snippet_path "${ram_sections_path} " )
1363
1365
elseif ("${location} " STREQUAL "DATA_SECTIONS" )
1364
1366
set (snippet_path "${data_sections_path} " )
1367
+ elseif ("${location} " STREQUAL "TEXT_SECTIONS" )
1368
+ set (snippet_path "${text_sections_path} " )
1365
1369
elseif ("${location} " STREQUAL "ROM_START" )
1366
1370
set (snippet_path "${rom_start_path} " )
1367
1371
elseif ("${location} " STREQUAL "NOINIT" )
0 commit comments