aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug
diff options
context:
space:
mode:
authormlugg <mlugg@mlugg.co.uk>2025-09-08 14:03:11 +0100
committermlugg <mlugg@mlugg.co.uk>2025-09-30 13:44:51 +0100
commit0c7b2a7bd5433b7e7bcde3bb49d48226dc2adef9 (patch)
tree1cc257c75956449de2cd833b91ce17b73b29f724 /lib/std/debug
parent202aeacc05a2fc53762c49d18daeefdf0fa5fbec (diff)
downloadzig-0c7b2a7bd5433b7e7bcde3bb49d48226dc2adef9.tar.gz
zig-0c7b2a7bd5433b7e7bcde3bb49d48226dc2adef9.zip
fix compiler ftbfs from std.macho and std.dwarf changes
Diffstat (limited to 'lib/std/debug')
-rw-r--r--lib/std/debug/Dwarf/Unwind.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug/Dwarf/Unwind.zig b/lib/std/debug/Dwarf/Unwind.zig
index 01ba96aad4..5334988b90 100644
--- a/lib/std/debug/Dwarf/Unwind.zig
+++ b/lib/std/debug/Dwarf/Unwind.zig
@@ -603,13 +603,13 @@ fn readEhPointerAbs(r: *Reader, enc_ty: EH.PE.Type, addr_size_bytes: u8, endian:
/// Returns `error.InvalidDebugInfo` if the encoding is `EH.PE.omit`.
fn readEhPointer(r: *Reader, enc: EH.PE, addr_size_bytes: u8, ctx: EhPointerContext, endian: Endian) !u64 {
const offset = try readEhPointerAbs(r, enc.type, addr_size_bytes, endian);
+ if (enc.indirect) return bad(); // GCC extension; not supported
const base = switch (enc.rel) {
.abs, .aligned => 0,
.pcrel => ctx.pc_rel_base,
.textrel => ctx.text_rel_base orelse return bad(),
.datarel => ctx.data_rel_base orelse return bad(),
.funcrel => ctx.function_rel_base orelse return bad(),
- .indirect => return bad(), // GCC extension; not supported
_ => return bad(),
};
return switch (offset) {