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 5 6--- !ELF 7FileHeader: 8 Class: ELFCLASS64 9 Data: ELFDATA2LSB 10 Type: ET_CORE 11Sections: 12 - Name: .note.foo 13 Type: SHT_NOTE 14 Notes: 15 - Name: NetBSD-CORE 16 Type: NT_NETBSDCORE_PROCINFO 17 - Name: NetBSD-CORE 18 Type: NT_NETBSDCORE_AUXV 19 - Name: NetBSD-CORE@3615 20 Type: NT_NETBSDCORE_LWPSTATUS 21 22ProgramHeaders: 23 - Type: PT_NOTE 24 FirstSec: .note.foo 25 LastSec: .note.foo 26 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) 32 33# LLVM: NoteSections [ 34# LLVM-NEXT: NoteSection { 35# LLVM-NEXT: Name: <?> 36# LLVM-NEXT: Offset: 0x78 37# LLVM-NEXT: Size: 0x50 38# LLVM-NEXT: Notes [ 39# LLVM-NEXT: { 40# LLVM-NEXT: Owner: NetBSD-CORE 41# LLVM-NEXT: Data size: 0x0 42# LLVM-NEXT: Type: NT_NETBSDCORE_PROCINFO (procinfo structure) 43# LLVM-NEXT: } 44# LLVM-NEXT: { 45# LLVM-NEXT: Owner: NetBSD-CORE 46# LLVM-NEXT: Data size: 0x0 47# LLVM-NEXT: Type: NT_NETBSDCORE_AUXV (ELF auxiliary vector data) 48# LLVM-NEXT: } 49# LLVM-NEXT: { 50# LLVM-NEXT: Owner: NetBSD-CORE@3615 51# LLVM-NEXT: Data size: 0x0 52# LLVM-NEXT: Type: PT_LWPSTATUS (ptrace_lwpstatus structure) 53# LLVM-NEXT: } 54# LLVM-NEXT: ] 55# LLVM-NEXT: } 56# LLVM-NEXT: ] 57