Page MenuHomeFreeBSD

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

Authored by dchagin on Jun 29 2023, 10:04 AM.
Tags
None
Referenced Files
F96159501: D40795.id123970.diff
Mon, Sep 23, 10:14 PM
Unknown Object (File)
Thu, Sep 5, 9:28 AM
Unknown Object (File)
Mon, Sep 2, 1:00 AM
Unknown Object (File)
Jul 6 2024, 1:35 AM
Unknown Object (File)
Jul 1 2024, 3:06 PM
Unknown Object (File)
Jun 27 2024, 9:01 PM
Unknown Object (File)
Jun 22 2024, 10:37 AM
Unknown Object (File)
Mar 8 2024, 7:22 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 Passed
Unit
No Test Coverage
Build Status
Buildable 52326
Build 49217: arc lint + arc unit