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)
38 # LLVM: NoteSections [
39 # LLVM-NEXT: NoteSection {
40 # LLVM-NEXT: Name: <?>
41 # LLVM-NEXT: Offset: 0x78
42 # LLVM-NEXT: Size: 0x74
45 # LLVM-NEXT: Owner: OpenBSD
46 # LLVM-NEXT: Data size: 0x0
47 # LLVM-NEXT: Type: NT_OPENBSD_PROCINFO (procinfo structure)
50 # LLVM-NEXT: Owner: OpenBSD
51 # LLVM-NEXT: Data size: 0x0
52 # LLVM-NEXT: Type: NT_OPENBSD_AUXV (ELF auxiliary vector data)
55 # LLVM-NEXT: Owner: OpenBSD
56 # LLVM-NEXT: Data size: 0x0
57 # LLVM-NEXT: Type: NT_OPENBSD_WCOOKIE (window cookie)
60 # LLVM-NEXT: Owner: OpenBSD@31337
61 # LLVM-NEXT: Data size: 0x0
62 # LLVM-NEXT: Type: NT_OPENBSD_REGS (regular registers)
65 # LLVM-NEXT: Owner: OpenBSD@31337
66 # LLVM-NEXT: Data size: 0x0
67 # LLVM-NEXT: Type: NT_OPENBSD_FPREGS (floating point registers)