xref: /aosp_15_r20/bionic/tests/libs/cfi_test_bad_lib.cpp (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
1*8d67ca89SAndroid Build Coastguard Worker // Mock an invalid CFI-enabled library.
2*8d67ca89SAndroid Build Coastguard Worker __attribute__((aligned(4096))) extern "C" char dummy[16] = {};
3*8d67ca89SAndroid Build Coastguard Worker __asm__(".globl __cfi_check");
4*8d67ca89SAndroid Build Coastguard Worker __asm__("__cfi_check = dummy + 3"); // Not aligned to anything.
5