freebsd-src/lib/csu
Dmitry Chagin c969310c99 csu: Implement _start using as to satisfy unwinders on x86_64
The right unwinding stop indicator should be CFI-undefined PC.
https://dwarfstd.org/doc/Dwarf3.pdf - page 118:
If a Return Address register is defined in the virtual unwind table,
and its rule is undefined (for example, by DW_CFA_undefined), then
there is no return address and no call address, and the virtual
unwind of stack activations is complete.

This requires the crt code be built with unwind tables, for that remove
-fno-asynchronous-unwind-tables to enable unwind tables generation.

PR:			241562, 246322, 246537
Reviewed by:		kib
Differential Revision:	https://reviews.freebsd.org/D40780
2023-06-29 19:34:39 +03:00
..
aarch64 csu: move common code to libc 2023-03-12 00:50:03 +02:00
amd64 csu: Implement _start using as to satisfy unwinders on x86_64 2023-06-29 19:34:39 +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 [PowerPC64LE] Use a shared LIBC_ARCH for powerpc64le. 2020-09-23 00:21:51 +00:00
Makefile.inc csu: Implement _start using as to satisfy unwinders on x86_64 2023-06-29 19:34:39 +03:00