opnsense-src/libexec/rtld-elf/i386
Dmitry Chagin e541cf8316 rtld: Annotate .rtld_start on i386
Add a stop indicator to rtld_start to satisfy unwinders:
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.

That is allows gdb and libunwind successfully stop when unwinding stack
from global constructors and destructors.

Reviewed by:		kib
Differential Revision:	https://reviews.freebsd.org/D40949
2023-07-11 15:10:32 +03:00
..
Makefile.inc rtld: clean up Makefile. 2020-01-11 09:18:58 +00:00
reloc.c rtld: rename tls_done to tls_static 2023-06-05 22:33:17 +03:00
rtld_machdep.h spdx: The BSD-2-Clause-FreeBSD identifier is obsolete, drop -FreeBSD 2023-05-12 10:44:03 -06:00
rtld_start.S rtld: Annotate .rtld_start on i386 2023-07-11 15:10:32 +03:00
Symbol.map