binutils Newspaper
NOVEMBER 30, 2026
sframe — Proposed

sframe: Fix RA and FP stack recovery rules

Reviewer approves v2 of a patch fixing typos in SFrame stack recovery rules for RA and FP.

Jens Remus reviews a patch (v2) that corrects typographical errors in the SFrame specification, specifically changing ‘CFA + offset’ to ‘*(CFA + offset)’ for Return Address (RA) and Frame Pointer (FP) stack recovery rules. He asks Indu for their agreement and notes that Indu’s email address has been updated in MAINTAINERS.

In the Thread 2 participants
  1. mengqinggang <mengqinggang@loongson.cn> proposer

    Submitted v2 of a patch to fix typos in SFrame stack recovery rules for RA and FP.

    “Fix the interpreted typo and change CFA + offset to *(CFA + offset) for RA and FP stack recovery. --- v1 -> v2: Add changes to libsframe/doc/sframe-spec.texi.”
  2. Jens Remus <jremus@linux.ibm.com> reviewer

    Approves the patch, finding it good, and asks for a second reviewer's opinion.

    “Thank you! Looks good to me. @Indu: Do you agree?”

Technical Tradeoffs

  • Improves documentation accuracy for stack frame recovery rules.

In Details

This patch corrects the SFrame (Stack Frame) specification for how Return Address (RA) and Frame Pointer (FP) are recovered from the stack. Previously, the documentation incorrectly stated that values were directly added to the Call Frame Address (CFA), implying pointer dereferencing was not involved. This revision clarifies that the recovery involves dereferencing the address calculated by CFA + offset, ensuring accurate stack unwinding, particularly for architectures like AMD64 and AARCH64.

For Context
SFrame
SFrame (Stack Frame) is a proposed standard for stack unwinding information, aiming to provide a generic way for debuggers and runtime systems to reconstruct the call stack.
RA
Return Address. The memory address that the program will return to after a function call completes.
FP
Frame Pointer. A register that typically points to the base of the current function's stack frame, used for accessing local variables and parameters.
CFA
Call Frame Address. The address on the stack that defines the current stack frame. It's often used as a reference point for calculating offsets to local variables, parameters, and saved registers.
Filed Under: SFramestack unwindingdocumentationbinutils