aboutsummaryrefslogtreecommitdiff
path: root/test/ELF/note.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/ELF/note.s')
-rw-r--r--test/ELF/note.s18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/ELF/note.s b/test/ELF/note.s
new file mode 100644
index 000000000000..a383b95c9907
--- /dev/null
+++ b/test/ELF/note.s
@@ -0,0 +1,18 @@
+// REQUIRES: x86
+// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
+// RUN: ld.lld %t.o -o %t -shared
+// RUN: llvm-readobj -program-headers %t | FileCheck %s
+
+// CHECK: Type: PT_NOTE
+// CHECK-NEXT: Offset:
+// CHECK-NEXT: VirtualAddress:
+// CHECK-NEXT: PhysicalAddress:
+// CHECK-NEXT: FileSize: 8
+// CHECK-NEXT: MemSize: 8
+// CHECK-NEXT: Flags [
+// CHECK-NEXT: PF_R
+// CHECK-NEXT: ]
+// CHECK-NEXT: Alignment: 1
+
+ .section .note.test,"a",@note
+ .quad 42