opnsense-src/lib/csu/amd64
Dmitry Chagin f049c92ad6 csu: Add the prologue and epilogue to the _init and _fini on x86_64
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.

Reviewed by:		kib
Differential Revision:	https://reviews.freebsd.org/D40795
2023-07-01 10:52:10 +03:00
..
crt.h Implement a BSD licensed crtbegin/crtend 2018-10-25 17:39:41 +00:00
crt1_c.c csu: Implement _start using as to satisfy unwinders on x86_64 2023-06-29 19:34:39 +03:00
crt1_s.S csu: Implement _start using as to satisfy unwinders on x86_64 2023-06-29 19:34:39 +03:00
crti.S csu: Add the prologue and epilogue to the _init and _fini on x86_64 2023-07-01 10:52:10 +03:00
crtn.S csu: Add the prologue and epilogue to the _init and _fini on x86_64 2023-07-01 10:52:10 +03:00
Makefile csu: Implement _start using as to satisfy unwinders on x86_64 2023-06-29 19:34:39 +03:00
Makefile.depend Add META_MODE support. 2015-06-13 19:20:56 +00:00