Skip to content

Commit 0473457

Browse files
committed
std.os.linux.tls: Set some constants correctly for powerpcle.
1 parent c631110 commit 0473457

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/std/os/linux/tls.zig

+3-3
Original file line numberDiff line numberDiff line change
@@ -81,20 +81,20 @@ const tls_tcb_size = switch (native_arch) {
8181

8282
// Controls if the TP points to the end of the TCB instead of its beginning
8383
const tls_tp_points_past_tcb = switch (native_arch) {
84-
.riscv32, .riscv64, .mips, .mipsel, .mips64, .mips64el, .powerpc, .powerpc64, .powerpc64le => true,
84+
.riscv32, .riscv64, .mips, .mipsel, .mips64, .mips64el, .powerpc, .powerpcle, .powerpc64, .powerpc64le => true,
8585
else => false,
8686
};
8787

8888
// Some architectures add some offset to the tp and dtv addresses in order to
8989
// make the generated code more efficient
9090

9191
const tls_tp_offset = switch (native_arch) {
92-
.mips, .mipsel, .mips64, .mips64el, .powerpc, .powerpc64, .powerpc64le => 0x7000,
92+
.mips, .mipsel, .mips64, .mips64el, .powerpc, .powerpcle, .powerpc64, .powerpc64le => 0x7000,
9393
else => 0,
9494
};
9595

9696
const tls_dtv_offset = switch (native_arch) {
97-
.mips, .mipsel, .mips64, .mips64el, .powerpc, .powerpc64, .powerpc64le => 0x8000,
97+
.mips, .mipsel, .mips64, .mips64el, .powerpc, .powerpcle, .powerpc64, .powerpc64le => 0x8000,
9898
.riscv32, .riscv64 => 0x800,
9999
else => 0,
100100
};

0 commit comments

Comments
 (0)