Regression from 4702feeee. The TLS segment is located inside .flash.rodata, so we need to get the alignment of that section, not .flash.rodata_noload.
@@ -344,14 +344,14 @@ SECTIONS
. = ALIGN(4);
} >default_rodata_seg
+ _flash_rodata_align = ALIGNOF(.flash.rodata);
+
.flash.rodata_noload (NOLOAD) :
{
. = ALIGN (4);
mapping[rodata_noload]
} > default_rodata_seg
- _flash_rodata_align = ALIGNOF(.flash.rodata_noload);
-
.flash.text :
_stext = .;
@@ -339,14 +339,14 @@ SECTIONS
@@ -401,14 +401,14 @@ SECTIONS
/* Marks the end of IRAM code segment */
.iram0.text_end (NOLOAD) :