std: Minor changes to TLS handling

* Always allocate an info block per-thread so that libc can store
  important stuff there.
* Respect ABI-mandated alignment in more places.
* Nicer code, use slices/pointers instead of raw addresses whenever
  possible.
This commit is contained in:
LemonBoy
2020-03-25 12:08:50 +01:00
committed by Andrew Kelley
parent 12e1c6e21c
commit d788b0cd8b
4 changed files with 153 additions and 141 deletions

View File

@@ -282,7 +282,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\source.zig:10:8: [address] in main (test)
\\ foo();
\\ ^
\\start.zig:256:29: [address] in std.start.posixCallMainAndExit (test)
\\start.zig:250:29: [address] in std.start.posixCallMainAndExit (test)
\\ return root.main();
\\ ^
\\start.zig:123:5: [address] in std.start._start (test)