1 ## Test that note values are interpreted correctly for FreeBSD 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_FREEBSD_THRMISC
18 Type: NT_FREEBSD_PROCSTAT_PROC
20 Type: NT_FREEBSD_PROCSTAT_FILES
22 Type: NT_FREEBSD_PROCSTAT_VMMAP
24 Type: NT_FREEBSD_PROCSTAT_GROUPS
26 Type: NT_FREEBSD_PROCSTAT_UMASK
28 Type: NT_FREEBSD_PROCSTAT_RLIMIT
30 Type: NT_FREEBSD_PROCSTAT_OSREL
32 Type: NT_FREEBSD_PROCSTAT_PSSTRINGS
34 Type: NT_FREEBSD_PROCSTAT_AUXV
51 # GNU: Displaying notes found at file offset 0x000000b0 with length 0x000000dc:
52 # GNU-NEXT: Owner Data size Description
53 # GNU-NEXT: FreeBSD 0x00000000 NT_THRMISC (thrmisc structure)
54 # GNU-NEXT: FreeBSD 0x00000000 NT_PROCSTAT_PROC (proc data)
55 # GNU-NEXT: FreeBSD 0x00000000 NT_PROCSTAT_FILES (files data)
56 # GNU-NEXT: FreeBSD 0x00000000 NT_PROCSTAT_VMMAP (vmmap data)
57 # GNU-NEXT: FreeBSD 0x00000000 NT_PROCSTAT_GROUPS (groups data)
58 # GNU-NEXT: FreeBSD 0x00000000 NT_PROCSTAT_UMASK (umask data)
59 # GNU-NEXT: FreeBSD 0x00000000 NT_PROCSTAT_RLIMIT (rlimit data)
60 # GNU-NEXT: FreeBSD 0x00000000 NT_PROCSTAT_OSREL (osreldate data)
61 # GNU-NEXT: FreeBSD 0x00000000 NT_PROCSTAT_PSSTRINGS (ps_strings data)
62 # GNU-NEXT: FreeBSD 0x00000000 NT_PROCSTAT_AUXV (auxv data)
63 # GNU-NEXT: FreeBSD 0x00000000 Unknown note type: (0x00012345)
65 # GNU-NEXT: Displaying notes found at file offset 0x0000018c with length 0x0000001c:
66 # GNU-NEXT: Owner Data size Description
67 # GNU-NEXT: FreeBSD 0x00000006 NT_PRPSINFO (prpsinfo structure)
68 # GNU-NEXT: description data: aa bb cc dd ee ff
71 # LLVM: NoteSections [
72 # LLVM-NEXT: NoteSection {
73 # LLVM-NEXT: Name: <?>
74 # LLVM-NEXT: Offset: 0xB0
75 # LLVM-NEXT: Size: 0xDC
78 # LLVM-NEXT: Owner: FreeBSD
79 # LLVM-NEXT: Data size: 0x0
80 # LLVM-NEXT: Type: NT_THRMISC (thrmisc structure)
83 # LLVM-NEXT: Owner: FreeBSD
84 # LLVM-NEXT: Data size: 0x0
85 # LLVM-NEXT: Type: NT_PROCSTAT_PROC (proc data)
88 # LLVM-NEXT: Owner: FreeBSD
89 # LLVM-NEXT: Data size: 0x0
90 # LLVM-NEXT: Type: NT_PROCSTAT_FILES (files data)
93 # LLVM-NEXT: Owner: FreeBSD
94 # LLVM-NEXT: Data size: 0x0
95 # LLVM-NEXT: Type: NT_PROCSTAT_VMMAP (vmmap data)
98 # LLVM-NEXT: Owner: FreeBSD
99 # LLVM-NEXT: Data size: 0x0
100 # LLVM-NEXT: Type: NT_PROCSTAT_GROUPS (groups data)
103 # LLVM-NEXT: Owner: FreeBSD
104 # LLVM-NEXT: Data size: 0x0
105 # LLVM-NEXT: Type: NT_PROCSTAT_UMASK (umask data)
108 # LLVM-NEXT: Owner: FreeBSD
109 # LLVM-NEXT: Data size: 0x0
110 # LLVM-NEXT: Type: NT_PROCSTAT_RLIMIT (rlimit data)
113 # LLVM-NEXT: Owner: FreeBSD
114 # LLVM-NEXT: Data size: 0x0
115 # LLVM-NEXT: Type: NT_PROCSTAT_OSREL (osreldate data)
118 # LLVM-NEXT: Owner: FreeBSD
119 # LLVM-NEXT: Data size: 0x0
120 # LLVM-NEXT: Type: NT_PROCSTAT_PSSTRINGS (ps_strings data)
123 # LLVM-NEXT: Owner: FreeBSD
124 # LLVM-NEXT: Data size: 0x0
125 # LLVM-NEXT: Type: NT_PROCSTAT_AUXV (auxv data)
128 # LLVM-NEXT: Owner: FreeBSD
129 # LLVM-NEXT: Data size: 0x0
130 # LLVM-NEXT: Type: Unknown (0x00012345)
134 # LLVM-NEXT: NoteSection {
135 # LLVM-NEXT: Name: <?>
136 # LLVM-NEXT: Offset: 0x18C
137 # LLVM-NEXT: Size: 0x1C
140 # LLVM-NEXT: Owner: FreeBSD
141 # LLVM-NEXT: Data size: 0x6
142 # LLVM-NEXT: Type: NT_PRPSINFO (prpsinfo structure)
143 # LLVM-NEXT: Description data (
144 # LLVM-NEXT: 0000: AABBCCDD EEFF |......|