43 lines · plain
1// See tests for GNU_PROPERTY_AARCH64_FEATURE_PAUTH in aarch64-feature-pauth.s2 3// RUN: llvm-mc -filetype=obj -triple aarch64-linux-gnu %s -o %t4// RUN: llvm-readelf --notes %t | FileCheck %s --check-prefix=GNU5// RUN: llvm-readobj --notes %t | FileCheck %s --check-prefix=LLVM6 7// GNU: Displaying notes found in: .note.gnu.property8// GNU-NEXT: Owner Data size Description9// GNU-NEXT: GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0 (property note)10// GNU-NEXT: Properties: aarch64 feature: BTI, PAC, GCS11 12// LLVM: NoteSections [13// LLVM-NEXT: NoteSection {14// LLVM-NEXT: Name: .note.gnu.property15// LLVM-NEXT: Offset: 0x4016// LLVM-NEXT: Size: 0x2017// LLVM-NEXT: Notes [18// LLVM-NEXT: {19// LLVM-NEXT: Owner: GNU20// LLVM-NEXT: Data size: 0x1021// LLVM-NEXT: Type: NT_GNU_PROPERTY_TYPE_0 (property note)22// LLVM-NEXT: Property [23// LLVM-NEXT: aarch64 feature: BTI, PAC, GCS24// LLVM-NEXT: ]25// LLVM-NEXT: }26// LLVM-NEXT: ]27// LLVM-NEXT: }28// LLVM-NEXT: ]29 30.section ".note.gnu.property", "a"31 .long 4 /* Name length is always 4 ("GNU") */32 .long end - begin /* Data length */33 .long 5 /* Type: NT_GNU_PROPERTY_TYPE_0 */34 .asciz "GNU" /* Name */35 .p2align 336begin:37 /* BTI, PAC, and GCS property note */38 .long 0xc0000000 /* Type: GNU_PROPERTY_AARCH64_FEATURE_1_AND */39 .long 4 /* Data size */40 .long 7 /* BTI, PAC, GCS */41 .p2align 3 /* Align to 8 byte for 64 bit */42end:43