HomeFreeBSD

Some fixups to the CFI directives for PLT stub entry points.

Description

Some fixups to the CFI directives for PLT stub entry points.

The directives I added in r323466 and r323501 did not define a valid
CFA until several instructions into the associated functions. This
triggers an assertion in GDB when generating a stack trace while
stopped at the first instruction of PLT stub entry point since there
is no valid CFA rule for the first instruction.

This is probably just wrong on my part as the non-simple .cfi_startproc
would have defined a valid CFA. Instead, define a valid CFA as sp + 0
at the start of the functions and then use .cfa_def_offset to change the
offset when sp is adjusted later in the function.

Sponsored by: DARPA / AFRL

Details

Provenance
jhbAuthored on
Parents
rS325623: Use NESTED() instead of LEAF() for rtld_start.
Branches
Unknown
Tags
Unknown