authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-01-18 13:54:05+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2025-01-19 02:15:30+01:00
log4de661ef18d4cdc7f859c8bc1990e8a0519163db
tree87f69ac67d27c80f3edae8eb425f050b6ecceb62
parent566cc4f99d03075f396b3ca13ee140fdcd80d37a
signaturebadge-check Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

start: Don't emit CFI directives if unwind tables are disabled.


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

lib/std/start.zig+2-2
......@@ -231,8 +231,8 @@ fn _start() callconv(.naked) noreturn {
231231 }
232232
233233 // This is the first userspace frame. Prevent DWARF-based unwinders from unwinding further. We
234 // prevent FP-based unwinders from unwinding further by zeroing the register further below.
235 asm volatile (switch (native_arch) {
234 // prevent FP-based unwinders from unwinding further by zeroing the register below.
235 if (builtin.unwind_tables != .none or !builtin.strip_debug_info) asm volatile (switch (native_arch) {
236236 .arc => ".cfi_undefined blink",
237237 .arm, .armeb, .thumb, .thumbeb => "", // https://github.com/llvm/llvm-project/issues/115891
238238 .aarch64, .aarch64_be => ".cfi_undefined lr",