summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-readobj/note-gnu-property.s
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/tools/llvm-readobj/note-gnu-property.s')
-rw-r--r--llvm/test/tools/llvm-readobj/note-gnu-property.s62
1 files changed, 45 insertions, 17 deletions
diff --git a/llvm/test/tools/llvm-readobj/note-gnu-property.s b/llvm/test/tools/llvm-readobj/note-gnu-property.s
index f0a9b131ed5..d513a3e460c 100644
--- a/llvm/test/tools/llvm-readobj/note-gnu-property.s
+++ b/llvm/test/tools/llvm-readobj/note-gnu-property.s
@@ -1,23 +1,51 @@
// REQUIRES: x86-registered-target
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t
-// RUN: llvm-readobj -elf-output-style GNU --notes %t | FileCheck %s
+// RUN: llvm-readobj -elf-output-style GNU --notes %t | FileCheck %s --check-prefix=GNU
+// RUN: llvm-readobj -elf-output-style LLVM --notes %t | FileCheck %s --check-prefix=LLVM
-// CHECK: Displaying notes found at file offset 0x00000040 with length 0x000000b8:
-// CHECK-NEXT: Owner Data size Description
-// CHECK-NEXT: GNU 0x000000a8 NT_GNU_PROPERTY_TYPE_0 (property note)
-// CHECK-NEXT: Properties: stack size: 0x100
-// CHECK-NEXT: stack size: 0x100
-// CHECK-NEXT: no copy on protected
-// CHECK-NEXT: X86 features: SHSTK
-// CHECK-NEXT: X86 features: IBT, SHSTK
-// CHECK-NEXT: X86 features: none
-// CHECK-NEXT: <application-specific type 0xfefefefe>
-// CHECK-NEXT: stack size: <corrupt length: 0x0>
-// CHECK-NEXT: stack size: <corrupt length: 0x4>
-// CHECK-NEXT: no copy on protected <corrupt length: 0x1>
-// CHECK-NEXT: X86 features: <corrupt length: 0x0>
-// CHECK-NEXT: X86 features: IBT, <unknown flags: 0xf000f000f000f000>
-// CHECK-NEXT: <corrupt type (0x2) datasz: 0x1>
+// GNU: Displaying notes found at file offset 0x00000040 with length 0x000000b8:
+// GNU-NEXT: Owner Data size Description
+// GNU-NEXT: GNU 0x000000a8 NT_GNU_PROPERTY_TYPE_0 (property note)
+// GNU-NEXT: Properties: stack size: 0x100
+// GNU-NEXT: stack size: 0x100
+// GNU-NEXT: no copy on protected
+// GNU-NEXT: X86 features: SHSTK
+// GNU-NEXT: X86 features: IBT, SHSTK
+// GNU-NEXT: X86 features: none
+// GNU-NEXT: <application-specific type 0xfefefefe>
+// GNU-NEXT: stack size: <corrupt length: 0x0>
+// GNU-NEXT: stack size: <corrupt length: 0x4>
+// GNU-NEXT: no copy on protected <corrupt length: 0x1>
+// GNU-NEXT: X86 features: <corrupt length: 0x0>
+// GNU-NEXT: X86 features: IBT, <unknown flags: 0xf000f000f000f000>
+// GNU-NEXT: <corrupt type (0x2) datasz: 0x1>
+
+// LLVM: Notes [
+// LLVM-NEXT: NoteSection {
+// LLVM-NEXT: Offset: 0x40
+// LLVM-NEXT: Size: 0xB8
+// LLVM-NEXT: Note {
+// LLVM-NEXT: Owner: GNU
+// LLVM-NEXT: Data size: 0xA8
+// LLVM-NEXT: Type: NT_GNU_PROPERTY_TYPE_0 (property note)
+// LLVM-NEXT: Property [
+// LLVM-NEXT: stack size: 0x100
+// LLVM-NEXT: stack size: 0x100
+// LLVM-NEXT: no copy on protected
+// LLVM-NEXT: X86 features: SHSTK
+// LLVM-NEXT: X86 features: IBT, SHSTK
+// LLVM-NEXT: X86 features: none
+// LLVM-NEXT: <application-specific type 0xfefefefe>
+// LLVM-NEXT: stack size: <corrupt length: 0x0>
+// LLVM-NEXT: stack size: <corrupt length: 0x4>
+// LLVM-NEXT: no copy on protected <corrupt length: 0x1>
+// LLVM-NEXT: X86 features: <corrupt length: 0x0>
+// LLVM-NEXT: X86 features: IBT, <unknown flags: 0xf000f000f000f000>
+// LLVM-NEXT: <corrupt type (0x2) datasz: 0x1>
+// LLVM-NEXT: ]
+// LLVM-NEXT: }
+// LLVM-NEXT: }
+// LLVM-NEXT: ]
.section ".note.gnu.property", "a"
.align 4
OpenPOWER on IntegriCloud