1 // REQUIRES: aarch64-registered-target
3 // When -mmark-bti-property is passed the generated file object gets BTI marking.
4 // RUN: %clang -target arm64-linux-none -mmark-bti-property -c -o - %s | llvm-readobj -n - | FileCheck -check-prefix=CHECK -check-prefix=CHECK_GEN %s
5 // RUN: %clang -target arm64-linux-none -DNOTE_PRESENT -c %s -o - | llvm-readobj -n - | FileCheck -check-prefix=CHECK -check-prefix=CHECK_PRESET %s
6 // RUN: %clang -target arm64-linux-none -mmark-bti-property -DNOTE_PRESENT -c %s -o - | llvm-readobj -n - | FileCheck -check-prefix=CHECK -check-prefix=CHECK_PRESET %s
7 // RUN: %clang -target arm64-linux-none -mmark-bti-property -DNOTE_PRESENT -c %s -o - 2>&1 | FileCheck -check-prefix=CHECK_WARNING %s
9 // CHECK_WARNING: The .note.gnu.property is not emitted because it is already present.
10 // CHECK: Name: .note.gnu.property
11 // CHECK: Type: NT_GNU_PROPERTY_TYPE_0
12 // CHECK_GEN: aarch64 feature: BTI
13 // CHECK_PRESET: aarch64 feature: BTI, PAC
16 .section .note.gnu.property, "a";