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-09-03 10:19:01-07:00
logc72f584218f6b52adba8b4a1c296cb9adf12924e
tree7f3865c9bef34d87f6f5f77957aa2d8a55e6d8cd
parent3617615e2d9e206952f020ebe1775c187e3a5d15

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