1 ## Test that note values are interpreted correctly for OpenBSD core files.
2 # RUN: yaml2obj %s -o %t.o
3 # RUN: llvm-readelf --notes %t.o | FileCheck %s --check-prefix=GNU --strict-whitespace
4 # RUN: llvm-readobj --notes %t.o | FileCheck %s --check-prefix=LLVM --strict-whitespace
16 Type: NT_OPENBSD_PROCINFO
20 Type: NT_OPENBSD_WCOOKIE
24 Type: NT_OPENBSD_FPREGS
30 # GNU: Displaying notes found at file offset 0x00000078 with length 0x00000074:
31 # GNU-NEXT: Owner Data size Description
32 # GNU-NEXT: OpenBSD 0x00000000 NT_OPENBSD_PROCINFO (procinfo structure)
33 # GNU-NEXT: OpenBSD 0x00000000 NT_OPENBSD_AUXV (ELF auxiliary vector data)
34 # GNU-NEXT: OpenBSD 0x00000000 NT_OPENBSD_WCOOKIE (window cookie)
35 # GNU-NEXT: OpenBSD@31337 0x00000000 NT_OPENBSD_REGS (regular registers)
36 # GNU-NEXT: OpenBSD@31337 0x00000000 NT_OPENBSD_FPREGS (floating point registers)
39 # LLVM-NEXT: NoteSection {
40 # LLVM-NEXT: Name: <?>
41 # LLVM-NEXT: Offset: 0x78
42 # LLVM-NEXT: Size: 0x74
44 # LLVM-NEXT: Owner: OpenBSD
45 # LLVM-NEXT: Data size: 0x0
46 # LLVM-NEXT: Type: NT_OPENBSD_PROCINFO (procinfo structure)
49 # LLVM-NEXT: Owner: OpenBSD
50 # LLVM-NEXT: Data size: 0x0
51 # LLVM-NEXT: Type: NT_OPENBSD_AUXV (ELF auxiliary vector data)
54 # LLVM-NEXT: Owner: OpenBSD
55 # LLVM-NEXT: Data size: 0x0
56 # LLVM-NEXT: Type: NT_OPENBSD_WCOOKIE (window cookie)
59 # LLVM-NEXT: Owner: OpenBSD@31337
60 # LLVM-NEXT: Data size: 0x0
61 # LLVM-NEXT: Type: NT_OPENBSD_REGS (regular registers)
64 # LLVM-NEXT: Owner: OpenBSD@31337
65 # LLVM-NEXT: Data size: 0x0
66 # LLVM-NEXT: Type: NT_OPENBSD_FPREGS (floating point registers)