2 # RUN: llvm-mc -filetype=obj -triple=i686-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 4 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: 0x4000F4
14 # CHECK-NEXT: Offset: 0xF4
15 # CHECK-NEXT: Size: 28
18 # CHECK-NEXT: AddressAlignment: 4
21 # CHECK-NEXT: Owner: GNU
22 # CHECK-NEXT: Data size: 0xC
23 # CHECK-NEXT: Type: NT_GNU_PROPERTY_TYPE_0 (property note)
24 # CHECK-NEXT: Property [
25 # CHECK-NEXT: x86 feature: IBT
27 .section ".note.gnu.property", "a"
34 .long 0xc0000002 # GNU_PROPERTY_X86_FEATURE_1_AND
36 .long 1 # GNU_PROPERTY_X86_FEATURE_1_IBT