Page MenuHomeFreeBSD

csu: Add the prologue and epilogue to the _init and _fini on i386
ClosedPublic

Authored by dchagin on Jul 9 2023, 12:14 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 28, 11:47 PM
Unknown Object (File)
Wed, Sep 24, 1:11 AM
Unknown Object (File)
Tue, Sep 23, 9:58 PM
Unknown Object (File)
Tue, Sep 23, 8:14 AM
Unknown Object (File)
Wed, Sep 17, 10:21 AM
Unknown Object (File)
Sep 8 2025, 10:39 AM
Unknown Object (File)
Aug 25 2025, 5:11 AM
Unknown Object (File)
Aug 20 2025, 10:26 AM
Subscribers

Details

Summary

Normally, modern unwinders uses Dwarf information to unwind stack,
however in case when the code is not annotated by Dwarf instructions,
unwinders fallbacks to a frame-pointer based algorithm.

That is allows libunwind to unwind stack from global constructors and
destructors. Also it makes gdb happy as it printed nonexistent frame
before.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable