11 lines · plain
1// This test checks that the GNUPropertyRewriter can decode the BTI feature flag.2// It decodes an executable with BTI, and checks for the warning.3 4RUN: yaml2obj %p/Inputs/property-note-bti.yaml &> %t.exe5 6RUN: llvm-readelf -n %t.exe | FileCheck %s7CHECK: BTI8 9RUN: llvm-bolt %t.exe -o %t.exe.bolt | FileCheck %s -check-prefix=CHECK-BOLT10CHECK-BOLT: BOLT-WARNING: binary is using BTI. Optimized binary may be corrupted11