aboutsummaryrefslogtreecommitdiff
path: root/lib/std/Build/Step/CheckObject.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2025-09-04 00:50:34 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2025-09-04 01:16:23 +0200
commita82f446d91c9e764719d34188de5d794ee24dda8 (patch)
treed4755d27e9547f683fbcc668cf858d279bc4dcb2 /lib/std/Build/Step/CheckObject.zig
parent9e076d8c7548eacc0bbbad770e5e06c3a427c687 (diff)
downloadzig-a82f446d91c9e764719d34188de5d794ee24dda8.tar.gz
zig-a82f446d91c9e764719d34188de5d794ee24dda8.zip
std.elf: change STV enum from u2 to u3
In gABI 4.3, st_other was changed such that the lower 3 bits are reserved for the visibility, up from the previous 2 bits.
Diffstat (limited to 'lib/std/Build/Step/CheckObject.zig')
-rw-r--r--lib/std/Build/Step/CheckObject.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/Build/Step/CheckObject.zig b/lib/std/Build/Step/CheckObject.zig
index 9dfe65829a..2b5994cc34 100644
--- a/lib/std/Build/Step/CheckObject.zig
+++ b/lib/std/Build/Step/CheckObject.zig
@@ -2226,7 +2226,7 @@ const ElfDumper = struct {
try writer.print(" {s}", .{sym_bind});
}
- const sym_vis = @as(elf.STV, @enumFromInt(@as(u2, @truncate(sym.st_other))));
+ const sym_vis = @as(elf.STV, @enumFromInt(@as(u3, @truncate(sym.st_other))));
try writer.print(" {s}", .{@tagName(sym_vis)});
const sym_name = switch (sym.st_type()) {