| //===----------------------------------------------------------------------===// | |
| // | |
| // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | |
| // See https://llvm.org/LICENSE.txt for license information. | |
| // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | |
| // | |
| // | |
| //===----------------------------------------------------------------------===// | |
| // Currently, CET is implemented on Linux x86 platforms. | |
| // On AArch64 we use _LIBUNWIND_USE_GCS to indicate that GCS is supported. We | |
| // need to guard any use of GCS instructions with __chkfeat though, as GCS may | |
| // not be enabled. | |
| // We can only use GCS if arm_acle.h defines the GCS intrinsics. | |
| extern void *__libunwind_shstk_get_registers(unw_cursor_t *); | |
| extern void *__libunwind_shstk_get_jump_target(void); | |