blob: 791c04375a56a2495ab9a884ce1a52eeb5524a1c [file] [edit]
// This test checks that the GNUPropertyRewriter can decode the BTI feature flag.
// It decodes an executable with BTI, and checks for the message.
RUN: yaml2obj %p/Inputs/property-note-bti.yaml &> %t.exe
RUN: llvm-readelf -n %t.exe | FileCheck %s
CHECK: BTI
RUN: llvm-bolt %t.exe -o %t.exe.bolt | FileCheck %s -check-prefix=CHECK-BOLT
CHECK-BOLT: BOLT-INFO: binary is using BTI