2 # RUN: llvm-mc -filetype=obj -triple=x86_64-linux-gnu %s -o %t.o
3 # RUN: ld.lld %t.o -o %t
4 # RUN: llvm-readobj --sections -n %t | FileCheck %s
6 ## Check that .note.gnu.property has alignment 8 and is readable by llvm-readobj
8 # CHECK: Name: .note.gnu.property
9 # CHECK-NEXT: Type: SHT_NOTE (0x7)
10 # CHECK-NEXT: Flags [ (0x2)
11 # CHECK-NEXT: SHF_ALLOC (0x2)
13 # CHECK-NEXT: Address: 0x200190
14 # CHECK-NEXT: Offset: 0x190
15 # CHECK-NEXT: Size: 32
18 # CHECK-NEXT: AddressAlignment: 8
23 # CHECK-NEXT: Owner: GNU
24 # CHECK-NEXT: Data size: 0x10
25 # CHECK-NEXT: Type: NT_GNU_PROPERTY_TYPE_0 (property note)
26 # CHECK-NEXT: Property [
27 # CHECK-NEXT: x86 feature: IBT
30 .section ".note.gnu.property", "a"
36 .long 0xc0000002 # GNU_PROPERTY_X86_FEATURE_1_AND
38 .long 1 # GNU_PROPERTY_X86_FEATURE_1_IBT
43 .type _start, %function