diff options
| author | Alex Rønne Petersen <alex@alexrp.com> | 2025-09-04 00:50:34 +0200 |
|---|---|---|
| committer | Alex Rønne Petersen <alex@alexrp.com> | 2025-09-04 01:16:23 +0200 |
| commit | a82f446d91c9e764719d34188de5d794ee24dda8 (patch) | |
| tree | d4755d27e9547f683fbcc668cf858d279bc4dcb2 /lib/std/Build/Step/CheckObject.zig | |
| parent | 9e076d8c7548eacc0bbbad770e5e06c3a427c687 (diff) | |
| download | zig-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.zig | 2 |
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()) { |
