1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-03 09:00:21 +00:00
freebsd/lib/csu
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
..
aarch64 csu: move common code to libc 2023-03-12 00:50:03 +02:00
amd64 csu: Add the prologue and epilogue to the _init and _fini on x86_64 2023-07-01 10:52:10 +03:00
arm csu: move common code to libc 2023-03-12 00:50:03 +02:00
common spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
i386 csu: move common code to libc 2023-03-12 00:50:03 +02:00
powerpc csu: move common code to libc 2023-03-12 00:50:03 +02:00
powerpc64 csu: move common code to libc 2023-03-12 00:50:03 +02:00
riscv csu: move common code to libc 2023-03-12 00:50:03 +02:00
tests Revert "csu: test: explicitly add libm as build parameter" 2022-07-28 11:23:26 -03:00
Makefile
Makefile.inc csu: Implement _start using as to satisfy unwinders on x86_64 2023-06-29 19:34:39 +03:00