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

2. Add a proper annotations for CFA.

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

Reviewed by:
Differential Revision:	https://reviews.freebsd.org/D40844
2023-07-07 19:55:28 +03:00
..
reloc.c rtld: rename tls_done to tls_static 2023-06-05 22:33:17 +03:00
rtld_machdep.h rtld: fix typo in comment 2023-06-10 04:35:14 +03:00
rtld_start.S rtld: Annotate .rtld_start on aarch64 2023-07-07 19:55:28 +03:00