llvm-project/libunwind/include
Koakuma 2b9554b885 [libunwind] [sparc] Add SPARCv9 support
Adds libunwind support for SPARCv9 (aka sparc64). This is a rebase of @kettenis' patch D32450, which I created (with his permission) because the original review has become inactive.
The changes are of a cosmetic nature to make it fit better with the new code style, and to reuse the existing SPARCv8 code, whenever possible.

Please let me know if I posted this on the wrong place. Also, the summary of the original review is reproduced below:

> This adds unwinder support for 64-bit SPARC (aka SPARCv9). The implementation was done on OpenBSD/sparc64, so it takes StackGhost into account:
>
> https://www.usenix.org/legacy/publications/library/proceedings/sec01/full_papers/frantzen/frantzen_html/index.html
>
> Since StackGhost xor's return addresses with a random cookie before storing them on the stack, the unwinder has to do some extra work to recover those. This is done by introducing a new kRegisterInCFADecrypt "location" type that is used to implement the DW_CFA_GNU_window_save opcode. That implementation is SPARC-specific, but should work for 32-bit SPARC as well. DW_CFA_GNU_window_save is only ever generated on SPARC as far as I know.

Co-authored-by: Mark Kettenis
Reviewed By: #libunwind, thesamesam, MaskRay, Arfrever

Differential Revision: https://reviews.llvm.org/D116857
2022-02-05 13:08:26 -08:00
..
mach-o [runtimes][NFC] Remove filenames at the top of the license notice 2021-11-17 16:30:52 -05:00
CMakeLists.txt [libunwind][cmake] Create `LIBUNWIND_INSTALL_INCLUDE_DIR` CACHE PATH 2022-01-10 21:31:52 +00:00
__libunwind_config.h [libunwind] [sparc] Add SPARCv9 support 2022-02-05 13:08:26 -08:00
libunwind.h [ARM][libunwind] add PACBTI-M support for libunwind 2021-12-08 09:44:45 +00:00
unwind.h [runtimes][NFC] Remove filenames at the top of the license notice 2021-11-17 16:30:52 -05:00
unwind_arm_ehabi.h [ARM][libunwind] add PACBTI-M support for libunwind 2021-12-08 09:44:45 +00:00
unwind_itanium.h [runtimes][NFC] Remove filenames at the top of the license notice 2021-11-17 16:30:52 -05:00