aboutsummaryrefslogtreecommitdiff
path: root/std
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-06-12 13:42:21 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-06-12 13:42:21 -0400
commit278c7a2bc398ac71afc9b9b392e863a758abb5fd (patch)
tree3b2f9cfff73c26f8b5bafb1c6024eb728fd2617f /std
parentce5d50e4ed519d23d7a467bdfee196093a3f5dc2 (diff)
downloadzig-278c7a2bc398ac71afc9b9b392e863a758abb5fd.tar.gz
zig-278c7a2bc398ac71afc9b9b392e863a758abb5fd.zip
fix `@bitCast` regressions
Diffstat (limited to 'std')
-rw-r--r--std/special/bootstrap.zig26
1 files changed, 13 insertions, 13 deletions
diff --git a/std/special/bootstrap.zig b/std/special/bootstrap.zig
index f1286bd659..20f2417972 100644
--- a/std/special/bootstrap.zig
+++ b/std/special/bootstrap.zig
@@ -78,19 +78,19 @@ fn posixCallMainAndExit() noreturn {
while (envp_optional[envp_count]) |_| : (envp_count += 1) {}
const envp = @ptrCast([*][*]u8, envp_optional)[0..envp_count];
- if (builtin.os == .linux) {
- // Find the beginning of the auxiliary vector
- const auxv = @ptrCast([*]std.elf.Auxv, envp.ptr + envp_count + 1);
- std.os.linux.elf_aux_maybe = auxv;
- // Initialize the TLS area
- std.os.linux.tls.initTLS();
-
- if (std.os.linux.tls.tls_image) |tls_img| {
- const tls_addr = std.os.linux.tls.allocateTLS(tls_img.alloc_size);
- const tp = std.os.linux.tls.copyTLS(tls_addr);
- std.os.linux.tls.setThreadPointer(tp);
- }
- }
+ //if (builtin.os == .linux) {
+ // // Find the beginning of the auxiliary vector
+ // const auxv = @ptrCast([*]std.elf.Auxv, envp.ptr + envp_count + 1);
+ // std.os.linux.elf_aux_maybe = auxv;
+ // // Initialize the TLS area
+ // std.os.linux.tls.initTLS();
+
+ // if (std.os.linux.tls.tls_image) |tls_img| {
+ // const tls_addr = std.os.linux.tls.allocateTLS(tls_img.alloc_size);
+ // const tp = std.os.linux.tls.copyTLS(tls_addr);
+ // std.os.linux.tls.setThreadPointer(tp);
+ // }
+ //}
std.os.exit(callMainWithArgs(argc, argv, envp));
}