Skip to content

Commit c631110

Browse files
committed
std.os.linux.tls: Set tls_tcb_size correctly for thumbeb.
1 parent d694ddd commit c631110

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/std/os/linux/tls.zig

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ const tls_variant = switch (native_arch) {
7474
const tls_tcb_size = switch (native_arch) {
7575
// ARM EABI mandates enough space for two pointers: the first one points to
7676
// the DTV while the second one is unspecified but reserved
77-
.arm, .armeb, .thumb, .aarch64, .aarch64_be => 2 * @sizeOf(usize),
77+
.arm, .armeb, .thumb, .thumbeb, .aarch64, .aarch64_be => 2 * @sizeOf(usize),
7878
// One pointer-sized word that points either to the DTV or the TCB itself
7979
else => @sizeOf(usize),
8080
};

0 commit comments

Comments
 (0)