Commit d694ddd279

Alex Rønne Petersen <alex@alexrp.com>
2024-07-21 23:38:13
std.os.linux.tls: Set tls_variant correctly for thumbeb.
1 parent d2d325a
Changed files (1)
lib
std
os
linux
lib/std/os/linux/tls.zig
@@ -49,7 +49,23 @@ const TLSVariant = enum {
 };
 
 const tls_variant = switch (native_arch) {
-    .arm, .armeb, .thumb, .aarch64, .aarch64_be, .riscv32, .riscv64, .mips, .mipsel, .mips64, .mips64el, .powerpc, .powerpcle, .powerpc64, .powerpc64le => TLSVariant.VariantI,
+    .arm,
+    .armeb,
+    .thumb,
+    .thumbeb,
+    .aarch64,
+    .aarch64_be,
+    .riscv32,
+    .riscv64,
+    .mips,
+    .mipsel,
+    .mips64,
+    .mips64el,
+    .powerpc,
+    .powerpcle,
+    .powerpc64,
+    .powerpc64le,
+    => TLSVariant.VariantI,
     .x86_64, .x86, .sparc64 => TLSVariant.VariantII,
     else => @compileError("undefined tls_variant for this architecture"),
 };