1 ; RUN: llc -mtriple x86_64-unknown-linux-gnu %s -o %t.o -filetype=obj
2 ; RUN: llvm-readobj -n %t.o | FileCheck %s
4 module asm ".pushsection \22.note.gnu.property\22,\22a\22,@note"
5 module asm " .p2align 3"
6 module asm " .long 1f - 0f"
7 module asm " .long 4f - 1f"
9 module asm "0: .asciz \22GNU\22"
10 module asm "1: .p2align 3"
11 module asm " .long 0xc0008002"
12 module asm " .long 3f - 2f"
13 module asm "2: .long ((1U << 0) | 0 | 0 | 0)"
14 module asm "3: .p2align 3"
16 module asm " .popsection"
18 !llvm.module.flags = !{!0, !1}
20 !0 = !{i32 4, !"cf-protection-return", i32 1}
21 !1 = !{i32 4, !"cf-protection-branch", i32 1}
23 ; CHECK: Type: NT_GNU_PROPERTY_TYPE_0
24 ; CHECK-NEXT: Property [
25 ; CHECK-NEXT: x86 feature: IBT, SHSTK
27 ; CHECK: Type: NT_GNU_PROPERTY_TYPE_0
28 ; CHECK-NEXT: Property [
29 ; CHECK-NEXT: x86 ISA needed: x86-64-baseline