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
72 # LLVM-NEXT: NoteSection {
73 # LLVM-NEXT: Name: <?>
74 # LLVM-NEXT: Offset: 0xB0
75 # LLVM-NEXT: Size: 0xDC
77 # LLVM-NEXT: Owner: FreeBSD
78 # LLVM-NEXT: Data size: 0x0
79 # LLVM-NEXT: Type: NT_THRMISC (thrmisc structure)
82 # LLVM-NEXT: Owner: FreeBSD
83 # LLVM-NEXT: Data size: 0x0
84 # LLVM-NEXT: Type: NT_PROCSTAT_PROC (proc data)
87 # LLVM-NEXT: Owner: FreeBSD
88 # LLVM-NEXT: Data size: 0x0
89 # LLVM-NEXT: Type: NT_PROCSTAT_FILES (files data)
92 # LLVM-NEXT: Owner: FreeBSD
93 # LLVM-NEXT: Data size: 0x0
94 # LLVM-NEXT: Type: NT_PROCSTAT_VMMAP (vmmap data)
97 # LLVM-NEXT: Owner: FreeBSD
98 # LLVM-NEXT: Data size: 0x0
99 # LLVM-NEXT: Type: NT_PROCSTAT_GROUPS (groups data)
102 # LLVM-NEXT: Owner: FreeBSD
103 # LLVM-NEXT: Data size: 0x0
104 # LLVM-NEXT: Type: NT_PROCSTAT_UMASK (umask data)
107 # LLVM-NEXT: Owner: FreeBSD
108 # LLVM-NEXT: Data size: 0x0
109 # LLVM-NEXT: Type: NT_PROCSTAT_RLIMIT (rlimit data)
112 # LLVM-NEXT: Owner: FreeBSD
113 # LLVM-NEXT: Data size: 0x0
114 # LLVM-NEXT: Type: NT_PROCSTAT_OSREL (osreldate data)
117 # LLVM-NEXT: Owner: FreeBSD
118 # LLVM-NEXT: Data size: 0x0
119 # LLVM-NEXT: Type: NT_PROCSTAT_PSSTRINGS (ps_strings data)
122 # LLVM-NEXT: Owner: FreeBSD
123 # LLVM-NEXT: Data size: 0x0
124 # LLVM-NEXT: Type: NT_PROCSTAT_AUXV (auxv data)
127 # LLVM-NEXT: Owner: FreeBSD
128 # LLVM-NEXT: Data size: 0x0
129 # LLVM-NEXT: Type: Unknown (0x00012345)
132 # LLVM-NEXT: NoteSection {
133 # LLVM-NEXT: Name: <?>
134 # LLVM-NEXT: Offset: 0x18C
135 # LLVM-NEXT: Size: 0x1C
137 # LLVM-NEXT: Owner: FreeBSD
138 # LLVM-NEXT: Data size: 0x6
139 # LLVM-NEXT: Type: NT_PRPSINFO (prpsinfo structure)
140 # LLVM-NEXT: Description data (
141 # LLVM-NEXT: 0000: AABBCCDD EEFF |......|