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