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)
Fri, Oct 18, 8:45 AM
Unknown Object (File)
Sep 30 2024, 11:33 PM
Unknown Object (File)
Sep 30 2024, 3:39 PM
Unknown Object (File)
Sep 24 2024, 5:22 PM
Unknown Object (File)
Sep 24 2024, 5:21 PM
Unknown Object (File)
Sep 24 2024, 3:33 PM
Unknown Object (File)
Sep 23 2024, 10:14 PM
Unknown Object (File)
Sep 5 2024, 9:28 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