mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
std.debug: fix FP-based unwinding on powerpc64
This just needs to do the same thing as powerpc64le. Note that the saved LR is at the same position in both ELF v1 and v2.
This commit is contained in:
parent
07c3f9ef8e
commit
d8268fac98
1 changed files with 1 additions and 1 deletions
|
|
@ -951,7 +951,7 @@ const StackIterator = union(enum) {
|
|||
|
||||
/// Offset of the saved return address wrt the frame pointer.
|
||||
const ra_offset = off: {
|
||||
if (native_arch == .powerpc64le) break :off 2 * @sizeOf(usize);
|
||||
if (native_arch.isPowerPC64()) break :off 2 * @sizeOf(usize);
|
||||
// On s390x, r14 is the link register and we need to grab it from its customary slot in the
|
||||
// register save area (ELF ABI s390x Supplement §1.2.2.2).
|
||||
if (native_arch == .s390x) break :off 14 * @sizeOf(usize);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue