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)
Mon, Feb 17, 9:23 AM
Unknown Object (File)
Jan 24 2025, 5:12 PM
Unknown Object (File)
Jan 24 2025, 1:41 PM
Unknown Object (File)
Jan 13 2025, 3:57 AM
Unknown Object (File)
Jan 9 2025, 3:39 PM
Unknown Object (File)
Jan 9 2025, 2:42 AM
Unknown Object (File)
Dec 11 2024, 11:38 AM
Unknown Object (File)
Nov 27 2024, 1:54 PM
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