mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
parent
c327444f5c
commit
bed8171d4e
1 changed files with 3 additions and 3 deletions
|
|
@ -627,7 +627,7 @@ fn exportHandler(
|
||||||
// Work around x86_64 backend limitation.
|
// Work around x86_64 backend limitation.
|
||||||
const linkage = if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag == .windows) .internal else .weak;
|
const linkage = if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag == .windows) .internal else .weak;
|
||||||
const N = "__ubsan_handle_" ++ sym_name;
|
const N = "__ubsan_handle_" ++ sym_name;
|
||||||
@export(handler, .{ .name = N, .linkage = linkage });
|
@export(handler, .{ .name = N, .linkage = linkage, .visibility = if (linkage == .internal) .default else .hidden });
|
||||||
}
|
}
|
||||||
|
|
||||||
fn exportHandlerWithAbort(
|
fn exportHandlerWithAbort(
|
||||||
|
|
@ -639,11 +639,11 @@ fn exportHandlerWithAbort(
|
||||||
const linkage = if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag == .windows) .internal else .weak;
|
const linkage = if (builtin.zig_backend == .stage2_x86_64 and builtin.os.tag == .windows) .internal else .weak;
|
||||||
{
|
{
|
||||||
const N = "__ubsan_handle_" ++ sym_name;
|
const N = "__ubsan_handle_" ++ sym_name;
|
||||||
@export(handler, .{ .name = N, .linkage = linkage });
|
@export(handler, .{ .name = N, .linkage = linkage, .visibility = if (linkage == .internal) .default else .hidden });
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
const N = "__ubsan_handle_" ++ sym_name ++ "_abort";
|
const N = "__ubsan_handle_" ++ sym_name ++ "_abort";
|
||||||
@export(abort_handler, .{ .name = N, .linkage = linkage });
|
@export(abort_handler, .{ .name = N, .linkage = linkage, .visibility = if (linkage == .internal) .default else .hidden });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue