commit c0b07b144bcce98c25c67d1f91e49d1cb92be1cd (tree)
parent 0bacbd4daac01489eb4d143e81cb52c154122059
Author: kcbanner <kcbanner@gmail.com>
Date: Sun, 7 Jun 2026 23:40:46 -0400
test/link: fixup tls snapshots
Diffstat:
3 files changed, 10 insertions(+), 1 deletion(-)
diff --git a/test/link.zig b/test/link.zig
@@ -94,7 +94,7 @@ pub fn addCases(ctx: *LinkContext) void {
"--symbols",
"--only-symbol=threadlocal",
"--only-symbol=tls",
- }, .{});
+ }, .{ .use_llvm = true });
const exe = case.addExecutable(.{
.name = "test",
diff --git a/test/link/snapshots/tls.llvm.dmp b/test/link/snapshots/tls.llvm.dmp
@@ -0,0 +1,9 @@
+xxxx 00000000 6 NULL STATIC | .tls$
+ | Section [size xxxxxxxx chksum a194a569 relocs 0000 lines 0000]
+xxxx 00000000 1 NULL() STATIC | obj.threadlocal_write
+xxxx 00000000 UNDEF NULL EXTERNAL | _tls_index
+xxxx 00000000 6 NULL STATIC | obj.threadlocal_var
+xxxx 00000004 6 NULL STATIC | obj.threadlocal_arr
+xxxx 00000040 1 NULL() STATIC | obj.threadlocal_read
+xxxx 00000000 1 NULL() EXTERNAL | threadlocal_write
+xxxx 00000040 1 NULL() EXTERNAL | threadlocal_read
diff --git a/test/link/snapshots/tls.dmp b/test/link/snapshots/tls.no-llvm.dmp