57 lines · plain
1## Test that note values are interpreted correctly for NetBSD core files.2# RUN: yaml2obj %s -o %t.o3# RUN: llvm-readelf --notes %t.o | FileCheck %s --check-prefix=GNU --strict-whitespace4# RUN: llvm-readobj --notes %t.o | FileCheck %s --check-prefix=LLVM --strict-whitespace5 6--- !ELF7FileHeader:8 Class: ELFCLASS649 Data: ELFDATA2LSB10 Type: ET_CORE11Sections:12 - Name: .note.foo13 Type: SHT_NOTE14 Notes:15 - Name: NetBSD-CORE16 Type: NT_NETBSDCORE_PROCINFO17 - Name: NetBSD-CORE18 Type: NT_NETBSDCORE_AUXV19 - Name: NetBSD-CORE@361520 Type: NT_NETBSDCORE_LWPSTATUS21 22ProgramHeaders:23 - Type: PT_NOTE24 FirstSec: .note.foo25 LastSec: .note.foo26 27# GNU: Displaying notes found at file offset 0x00000078 with length 0x00000050:28# GNU-NEXT: Owner Data size Description29# 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: 0x7837# LLVM-NEXT: Size: 0x5038# LLVM-NEXT: Notes [39# LLVM-NEXT: {40# LLVM-NEXT: Owner: NetBSD-CORE41# LLVM-NEXT: Data size: 0x042# LLVM-NEXT: Type: NT_NETBSDCORE_PROCINFO (procinfo structure)43# LLVM-NEXT: }44# LLVM-NEXT: {45# LLVM-NEXT: Owner: NetBSD-CORE46# LLVM-NEXT: Data size: 0x047# LLVM-NEXT: Type: NT_NETBSDCORE_AUXV (ELF auxiliary vector data)48# LLVM-NEXT: }49# LLVM-NEXT: {50# LLVM-NEXT: Owner: NetBSD-CORE@361551# LLVM-NEXT: Data size: 0x052# LLVM-NEXT: Type: PT_LWPSTATUS (ptrace_lwpstatus structure)53# LLVM-NEXT: }54# LLVM-NEXT: ]55# LLVM-NEXT: }56# LLVM-NEXT: ]57