HomeFreeBSD

csu: Implement _start using as to satisfy unwinders on i386

Description

csu: Implement _start using as to satisfy unwinders on i386

The right unwinding stop indicator should be CFI-undefined PC.
https://dwarfstd.org/doc/Dwarf3.pdf - page 118:
If a Return Address register is defined in the virtual unwind table,
and its rule is undefined (for example, by DW_CFA_undefined), then
there is no return address and no call address, and the virtual
unwind of stack activations is complete.

The hack localizing _start1 symbol removed.

Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D40624

Details

Provenance
dchaginAuthored on Jul 11 2023, 12:12 PM
Reviewer
kib
Differential Revision
D40624: csu: Implement _start using as to satisfy unwinders on i386
Parents
rGd7e2580a1494: csu: Add the prologue and epilogue to the _init and _fini on i386
Branches
Unknown
Tags
Unknown