Skip to content

Commit a683c83

Browse files
committed
boards/qemu-intel64: align _etbss to fix TLS block size mismatch
Align _etbss in the linker script so (_etbss - _stdata) matches the compiler's aligned TLS block size. Fix ostest failure for CONFIG_SCHED_THREAD_LOCAL=y Signed-off-by: raiden00pl <raiden00@railab.me>
1 parent 942105c commit a683c83

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

  • boards/x86_64/qemu/qemu-intel64/scripts

boards/x86_64/qemu/qemu-intel64/scripts/qemu.ld

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ SECTIONS
113113
_etdata = ABSOLUTE(.);
114114
_stbss = ABSOLUTE(.);
115115
*(.tbss .tbss.* .gnu.linkonce.tb.* .tcommon);
116+
. = ALIGN(16);
116117
_etbss = ABSOLUTE(.);
117118
}
118119

0 commit comments

Comments
 (0)