authorgravatar for sebasti@nullri.chSebastian Ullrich <sebasti@nullri.ch> 2021-08-30 17:38:25+02:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2021-08-31 21:50:16-04:00
log9d4a6d67aa3b85c64e0b2367d8ab30ae72f64834
treefd006e5629a3721568c0eda446f1a42042ebcedb
parent75263e160e477a210a3d2a007b6d66c63b85001f

libunwind: fix unwinding through libunwind stack frames

Fixes #9591

1 files changed, 2 insertions(+), 0 deletions(-)

src/libunwind.zig+2
......@@ -71,6 +71,8 @@ pub fn buildStaticLib(comp: *Compilation) !void {
7171 try cflags.append("-Wa,--noexecstack");
7272 try cflags.append("-fvisibility=hidden");
7373 try cflags.append("-fvisibility-inlines-hidden");
74 // necessary so that libunwind can unwind through its own stack frames
75 try cflags.append("-funwind-tables");
7476
7577 // This is intentionally always defined because the macro definition means, should it only
7678 // build for the target specified by compiler defines. Since we pass -target the compiler