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
Unknown Object (File)
Mar 8 2024, 7:22 AM
Unknown Object (File)
Jan 4 2024, 5:41 AM
Unknown Object (File)
Dec 23 2023, 12:05 AM
Unknown Object (File)
Dec 12 2023, 3:33 PM
Unknown Object (File)
Sep 29 2023, 3:45 PM
Unknown Object (File)
Aug 15 2023, 2:33 AM
Unknown Object (File)
Aug 15 2023, 12:59 AM
Unknown Object (File)
Jul 8 2023, 9:36 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