Skip to content

Commit 30f5258

Browse files
committed
std.debug.SelfInfo.Elf: disable unwinding on mips n32 and x86 x32
The DWARF code can't handle these yet. ref #25447
1 parent 906ce2a commit 30f5258

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/std/debug/SelfInfo/Elf.zig

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,16 @@ pub fn getModuleName(si: *SelfInfo, gpa: Allocator, address: usize) Error![]cons
8181
}
8282

8383
pub const can_unwind: bool = s: {
84+
// The DWARF code can't deal with ILP32 ABIs yet: https://github.com/ziglang/zig/issues/25447
85+
switch (builtin.target.abi) {
86+
.gnuabin32,
87+
.muslabin32,
88+
.gnux32,
89+
.muslx32,
90+
=> break :s false,
91+
else => {},
92+
}
93+
8494
// Notably, we are yet to support unwinding on ARM. There, unwinding is not done through
8595
// `.eh_frame`, but instead with the `.ARM.exidx` section, which has a different format.
8696
const archs: []const std.Target.Cpu.Arch = switch (builtin.target.os.tag) {

0 commit comments

Comments
 (0)