bionic/tests/libs/cfi_test_bad_lib.cpp

5 lines
198 B
C++
Raw Normal View History

2025-08-25 08:22:42 +08:00
// Mock an invalid CFI-enabled library.
__attribute__((aligned(4096))) extern "C" char dummy[16] = {};
__asm__(".globl __cfi_check");
__asm__("__cfi_check = dummy + 3"); // Not aligned to anything.