Skip to content

Commit d7aa7db

Browse files
committed
implement emutls in compiler_rt
1 parent ebf2a7e commit d7aa7db

File tree

2 files changed

+399
-0
lines changed

2 files changed

+399
-0
lines changed

lib/std/special/compiler_rt.zig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,10 @@ comptime {
167167

168168
@export(@import("compiler_rt/clzsi2.zig").__clzsi2, .{ .name = "__clzsi2", .linkage = linkage });
169169

170+
if (builtin.link_libc and builtin.os.tag == .openbsd) {
171+
@export(@import("compiler_rt/emutls.zig").__emutls_get_address, .{ .name = "__emutls_get_address", .linkage = linkage });
172+
}
173+
170174
if ((builtin.arch.isARM() or builtin.arch.isThumb()) and !is_test) {
171175
@export(@import("compiler_rt/arm.zig").__aeabi_unwind_cpp_pr0, .{ .name = "__aeabi_unwind_cpp_pr0", .linkage = linkage });
172176
@export(@import("compiler_rt/arm.zig").__aeabi_unwind_cpp_pr1, .{ .name = "__aeabi_unwind_cpp_pr1", .linkage = linkage });

0 commit comments

Comments
 (0)