aboutsummaryrefslogtreecommitdiff
path: root/src/Compilation.zig
diff options
context:
space:
mode:
authorAlex Rønne Petersen <alex@alexrp.com>2024-11-04 18:30:36 +0100
committerAlex Rønne Petersen <alex@alexrp.com>2024-12-11 00:10:17 +0100
commitda018f972619377e8c044c5c27ebf231be262bb3 (patch)
tree00faa647aca74f648677b74828301ab0f8c14fc0 /src/Compilation.zig
parent7d0087707634028308d3a870883249bfa59d94b8 (diff)
downloadzig-da018f972619377e8c044c5c27ebf231be262bb3.tar.gz
zig-da018f972619377e8c044c5c27ebf231be262bb3.zip
std.os.linux: Add unwinding protection in clone() implementations.
Whatever was in the frame pointer register prior to clone() will no longer be valid in the child process, so zero it to protect FP-based unwinders. Similarly, mark the link register as undefined to protect DWARF-based unwinders. This is only zeroing the frame pointer(s) on Arm/Thumb because of an LLVM assembler bug: https://github.com/llvm/llvm-project/issues/115891
Diffstat (limited to 'src/Compilation.zig')
0 files changed, 0 insertions, 0 deletions