1 ## Test that note values are interpreted correctly for NetBSD 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_NETBSDCORE_PROCINFO
18 Type: NT_NETBSDCORE_AUXV
19 - Name: NetBSD-CORE@3615
20 Type: NT_NETBSDCORE_LWPSTATUS
27 # GNU: Displaying notes found at file offset 0x00000078 with length 0x00000050:
28 # GNU-NEXT: Owner Data size Description
29 # GNU-NEXT: NetBSD-CORE 0x00000000 NT_NETBSDCORE_PROCINFO (procinfo structure)
30 # GNU-NEXT: NetBSD-CORE 0x00000000 NT_NETBSDCORE_AUXV (ELF auxiliary vector data)
31 # GNU-NEXT: NetBSD-CORE@3615 0x00000000 PT_LWPSTATUS (ptrace_lwpstatus structure)
34 # LLVM-NEXT: NoteSection {
35 # LLVM-NEXT: Name: <?>
36 # LLVM-NEXT: Offset: 0x78
37 # LLVM-NEXT: Size: 0x50
39 # LLVM-NEXT: Owner: NetBSD-CORE
40 # LLVM-NEXT: Data size: 0x0
41 # LLVM-NEXT: Type: NT_NETBSDCORE_PROCINFO (procinfo structure)
44 # LLVM-NEXT: Owner: NetBSD-CORE
45 # LLVM-NEXT: Data size: 0x0
46 # LLVM-NEXT: Type: NT_NETBSDCORE_AUXV (ELF auxiliary vector data)
49 # LLVM-NEXT: Owner: NetBSD-CORE@3615
50 # LLVM-NEXT: Data size: 0x0
51 # LLVM-NEXT: Type: PT_LWPSTATUS (ptrace_lwpstatus structure)