[memprof] Remove an unused using directive (#117004)
[llvm-project.git] / lld / test / ELF / gnu-property-align.s
blobd920ea5d0e468df93646b27fcbd97fb09179f108
1 # REQUIRES: x86
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)
12 # CHECK-NEXT: ]
13 # CHECK-NEXT: Address: 0x200190
14 # CHECK-NEXT: Offset: 0x190
15 # CHECK-NEXT: Size: 32
16 # CHECK-NEXT: Link: 0
17 # CHECK-NEXT: Info: 0
18 # CHECK-NEXT: AddressAlignment: 8
20 # CHECK: Size: 0x20
21 # CHECK-NEXT: Notes [
22 # CHECK-NEXT: {
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"
31 .long 4
32 .long 0x10
33 .long 0x5
34 .asciz "GNU"
36 .long 0xc0000002 # GNU_PROPERTY_X86_FEATURE_1_AND
37 .long 4
38 .long 1 # GNU_PROPERTY_X86_FEATURE_1_IBT
39 .long 0
41 .text
42 .globl _start
43 .type _start, %function
44 _start: ret