4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
23 # Copyright 2009 Sun Microsystems, Inc. All rights reserved.
24 # Use is subject to license terms.
27 @ MSG_ELFCLASSNONE_CF "ELFCLASSNONE" # 0
28 @ MSG_ELFCLASSNONE_DMP "None"
29 @ MSG_ELFCLASSNONE_NF "none"
30 @ MSG_ELFCLASS32_CF "ELFCLASS32" # 1
31 @ MSG_ELFCLASS32_DMP "32-bit"
32 @ MSG_ELFCLASS32_NF "32"
33 @ MSG_ELFCLASS64_CF "ELFCLASS64" # 2
34 @ MSG_ELFCLASS64_DMP "64-bit"
35 @ MSG_ELFCLASS64_NF "64"
37 @ MSG_ELFDATANONE_CF "ELFDATANONE" # 0
38 @ MSG_ELFDATANONE_DMP "None"
39 @ MSG_ELFDATANONE_NF "none"
40 @ MSG_ELFDATA2LSB_CF "ELFDATA2LSB" # 1
41 @ MSG_ELFDATA2LSB_DMP "2LSB"
42 @ MSG_ELFDATA2LSB_FIL "LSB"
43 @ MSG_ELFDATA2LSB_NF "lsb"
44 @ MSG_ELFDATA2MSB_CF "ELFDATA2MSB" # 2
45 @ MSG_ELFDATA2MSB_DMP "2MSB"
46 @ MSG_ELFDATA2MSB_FIL "MSB"
47 @ MSG_ELFDATA2MSB_NF "msb"
49 @ MSG_EM_NONE_CF "EM_NONE" # 0
50 @ MSG_EM_NONE_NF "none"
51 @ MSG_EM_NONE_DMP "No mach"
52 @ MSG_EM_M32_CF "EM_M32" # 1
54 @ MSG_EM_M32_DMP "WE32100"
55 @ MSG_EM_SPARC_CF "EM_SPARC" # 2
56 @ MSG_EM_SPARC_NF "sparc"
57 @ MSG_EM_SPARC_DMP "SPARC"
58 @ MSG_EM_386_CF "EM_386" # 3
60 @ MSG_EM_386_DMP "80386"
61 @ MSG_EM_68K_CF "EM_68K" # 4
62 @ MSG_EM_68K_DMP "68000"
64 @ MSG_EM_88K_CF "EM_88K" # 5
66 @ MSG_EM_88K_DMP "88000"
67 @ MSG_EM_486_CF "EM_486" # 6
69 @ MSG_EM_486_DMP "80486"
70 @ MSG_EM_860_CF "EM_860" # 7
72 @ MSG_EM_860_DMP "i860"
73 @ MSG_EM_MIPS_CF "EM_MIPS" # 8
74 @ MSG_EM_MIPS_NF "mips"
75 @ MSG_EM_MIPS_DMP "RS3000_BE"
76 @ MSG_EM_S370_CF "EM_S370" # 9
77 @ MSG_EM_S370_NF "s370"
78 @ MSG_EM_MIPS_RS3_LE_CF "EM_MIPS_RS3_LE" # 10
79 @ MSG_EM_MIPS_RS3_LE_NF "mips_rs3_le"
80 @ MSG_EM_MIPS_RS3_LE_DMP "RS3000_LE"
81 @ MSG_EM_RS6000_CF "EM_RS6000" # 11
82 @ MSG_EM_RS6000_NF "rs6000"
83 @ MSG_EM_RS6000_DMP "RS6000"
84 @ MSG_EM_PA_RISC_CF "EM_PA_RISC" # 15
85 @ MSG_EM_PA_RISC_NF "pa_risc"
86 @ MSG_EM_PA_RISC_DMP "PA_RISC"
87 @ MSG_EM_NCUBE_CF "EM_nCUBE" # 16
88 @ MSG_EM_NCUBE_NF "ncube"
89 @ MSG_EM_NCUBE_DMP "nCUBE"
90 @ MSG_EM_VPP500_CF "EM_VPP500" # 17
91 @ MSG_EM_VPP500_NF "vpp500"
92 @ MSG_EM_VPP500_DMP "VPP500"
93 @ MSG_EM_SPARC32PLUS_CF "EM_SPARC32PLUS" # 18
94 @ MSG_EM_SPARC32PLUS_NF "sparc32plus"
95 @ MSG_EM_SPARC32PLUS_DMP "SPARC32PLUS"
96 @ MSG_EM_960_CF "EM_960" # 19
98 @ MSG_EM_PPC_CF "EM_PPC" # 20
100 @ MSG_EM_PPC_DMP "PowerPC"
101 @ MSG_EM_PPC64_CF "EM_PPC64" # 21
102 @ MSG_EM_PPC64_NF "ppc64"
103 @ MSG_EM_PPC64_DMP "PowerPC64"
104 @ MSG_EM_S390_CF "EM_S390" # 22
105 @ MSG_EM_S390_NF "s390"
106 @ MSG_EM_V800_CF "EM_V800" # 36
107 @ MSG_EM_V800_NF "v800"
108 @ MSG_EM_FR20_CF "EM_FR20" # 37
109 @ MSG_EM_FR20_NF "fr20"
110 @ MSG_EM_RH32_CF "EM_RH32" # 38
111 @ MSG_EM_RH32_NF "rh32"
112 @ MSG_EM_RCE_CF "EM_RCE" # 39
113 @ MSG_EM_RCE_NF "rce"
114 @ MSG_EM_ARM_CF "EM_ARM" # 40
115 @ MSG_EM_ARM_NF "arm"
116 @ MSG_EM_ARM_DMP "ARM"
117 @ MSG_EM_ALPHA_CF "EM_ALPHA" # 41
118 @ MSG_EM_ALPHA_NF "alpha"
119 @ MSG_EM_ALPHA_DMP "Alpha"
120 @ MSG_EM_SH_CF "EM_SH" # 42
122 @ MSG_EM_SPARCV9_CF "EM_SPARCV9" # 43
123 @ MSG_EM_SPARCV9_NF "sparcv9"
124 @ MSG_EM_SPARCV9_DMP "SPARCV9"
125 @ MSG_EM_TRICORE_CF "EM_TRICORE" # 44
126 @ MSG_EM_TRICORE_NF "tricore"
127 @ MSG_EM_ARC_CF "EM_ARC" # 45
128 @ MSG_EM_ARC_NF "arc"
129 @ MSG_EM_H8_300_CF "EM_H8_300" # 46
130 @ MSG_EM_H8_300_NF "h8_300"
131 @ MSG_EM_H8_300H_CF "EM_H8_300H" # 47
132 @ MSG_EM_H8_300H_NF "h8_300h"
133 @ MSG_EM_H8S_CF "EM_H8S" # 48
134 @ MSG_EM_H8S_NF "h8s"
135 @ MSG_EM_H8_500_CF "EM_H8_500" # 49
136 @ MSG_EM_H8_500_NF "h8_500"
137 @ MSG_EM_IA_64_CF "EM_IA_64" # 50
138 @ MSG_EM_IA_64_NF "ia_64"
139 @ MSG_EM_IA_64_DMP "IA_64"
140 @ MSG_EM_MIPS_X_CF "EM_MIPS_X" # 51
141 @ MSG_EM_MIPS_X_NF "mips_x"
142 @ MSG_EM_COLDFIRE_CF "EM_COLDFIRE" # 52
143 @ MSG_EM_COLDFIRE_NF "coldfire"
144 @ MSG_EM_68HC12_CF "EM_68HC12" # 53
145 @ MSG_EM_68HC12_NF "68hc12"
146 @ MSG_EM_MMA_CF "EM_MMA" # 54
147 @ MSG_EM_MMA_NF "mma"
148 @ MSG_EM_PCP_CF "EM_PCP" # 55
149 @ MSG_EM_PCP_NF "pcp"
150 @ MSG_EM_NCPU_CF "EM_NCPU" # 56
151 @ MSG_EM_NCPU_NF "ncpu"
152 @ MSG_EM_NDR1_CF "EM_NDR1" # 57
153 @ MSG_EM_NDR1_NF "ndr1"
154 @ MSG_EM_STARCORE_CF "EM_STARCORE" # 58
155 @ MSG_EM_STARCORE_NF "starcore"
156 @ MSG_EM_ME16_CF "EM_ME16" # 59
157 @ MSG_EM_ME16_NF "me16"
158 @ MSG_EM_ST100_CF "EM_ST100" # 60
159 @ MSG_EM_ST100_NF "st100"
160 @ MSG_EM_TINYJ_CF "EM_TINYJ" # 61
161 @ MSG_EM_TINYJ_NF "tinyj"
162 @ MSG_EM_AMD64_CF "EM_AMD64" # 62
163 @ MSG_EM_AMD64_NF "amd64"
164 @ MSG_EM_AMD64_DMP "AMD64"
165 @ MSG_EM_PDSP_CF "EM_PDSP" # 63
166 @ MSG_EM_PDSP_NF "pdsp"
167 @ MSG_EM_FX66_CF "EM_FX66" # 66
168 @ MSG_EM_FX66_NF "fx66"
169 @ MSG_EM_ST9PLUS_CF "EM_ST9PLUS" # 67
170 @ MSG_EM_ST9PLUS_NF "st9plus"
171 @ MSG_EM_ST7_CF "EM_ST7" # 68
172 @ MSG_EM_ST7_NF "st7"
173 @ MSG_EM_68HC16_CF "EM_68HC16" # 69
174 @ MSG_EM_68HC16_NF "68hc16"
175 @ MSG_EM_68HC11_CF "EM_68HC11" # 70
176 @ MSG_EM_68HC11_NF "68hc11"
177 @ MSG_EM_68HC08_CF "EM_68HC08" # 71
178 @ MSG_EM_68HC08_NF "68hc08"
179 @ MSG_EM_68HC05_CF "EM_68HC05" # 72
180 @ MSG_EM_68HC05_NF "68hc05"
181 @ MSG_EM_SVX_CF "EM_SVX" # 73
182 @ MSG_EM_SVX_NF "svx"
183 @ MSG_EM_ST19_CF "EM_ST19" # 74
184 @ MSG_EM_ST19_NF "st19"
185 @ MSG_EM_VAX_CF "EM_VAX" # 75
186 @ MSG_EM_VAX_NF "vax"
187 @ MSG_EM_VAX_DMP "VAX"
188 @ MSG_EM_CRIS_CF "EM_CRIS" # 76
189 @ MSG_EM_CRIS_NF "cris"
190 @ MSG_EM_JAVELIN_CF "EM_JAVELIN" # 77
191 @ MSG_EM_JAVELIN_NF "javelin"
192 @ MSG_EM_FIREPATH_CF "EM_FIREPATH" # 78
193 @ MSG_EM_FIREPATH_NF "firepath"
194 @ MSG_EM_ZSP_CF "EM_ZSP" # 79
195 @ MSG_EM_ZSP_NF "zsp"
196 @ MSG_EM_MMIX_CF "EM_MMIX" # 80
197 @ MSG_EM_MMIX_NF "mmix"
198 @ MSG_EM_HUANY_CF "EM_HUANY" # 81
199 @ MSG_EM_HUANY_NF "huany"
200 @ MSG_EM_PRISM_CF "EM_PRISM" # 82
201 @ MSG_EM_PRISM_NF "prism"
202 @ MSG_EM_AVR_CF "EM_AVR" # 83
203 @ MSG_EM_AVR_NF "avr"
204 @ MSG_EM_FR30_CF "EM_FR30" # 84
205 @ MSG_EM_FR30_NF "fr30"
206 @ MSG_EM_D10V_CF "EM_D10V" # 85
207 @ MSG_EM_D10V_NF "d10v"
208 @ MSG_EM_D30V_CF "EM_D30V" # 86
209 @ MSG_EM_D30V_NF "d30v"
210 @ MSG_EM_V850_CF "EM_V850" # 87
211 @ MSG_EM_V850_NF "v850"
212 @ MSG_EM_M32R_CF "EM_M32R" # 88
213 @ MSG_EM_M32R_NF "m32r"
214 @ MSG_EM_MN10300_CF "EM_MN10300" # 89
215 @ MSG_EM_MN10300_NF "mn10300"
216 @ MSG_EM_MN10200_CF "EM_MN10200" # 90
217 @ MSG_EM_MN10200_NF "mn10200"
218 @ MSG_EM_PJ_CF "EM_PJ" # 91
220 @ MSG_EM_OPENRISC_CF "EM_OPENRISC" # 92
221 @ MSG_EM_OPENRISC_NF "openrisc"
222 @ MSG_EM_ARC_A5_CF "EM_ARC_A5" # 93
223 @ MSG_EM_ARC_A5_NF "arc_a5"
224 @ MSG_EM_XTENSA_CF "EM_XTENSA" # 94
225 @ MSG_EM_XTENSA_NF "xtensa"
228 @ MSG_EI_MAG0_CF "EI_MAG0" # 0
229 @ MSG_EI_MAG0_NF "mag0"
230 @ MSG_EI_MAG1_CF "EI_MAG1" # 1
231 @ MSG_EI_MAG1_NF "mag1"
232 @ MSG_EI_MAG2_CF "EI_MAG2" # 2
233 @ MSG_EI_MAG2_NF "mag2"
234 @ MSG_EI_MAG3_CF "EI_MAG3" # 3
235 @ MSG_EI_MAG3_NF "mag3"
236 @ MSG_EI_CLASS_CF "EI_CLASS" # 4
237 @ MSG_EI_CLASS_NF "class"
238 @ MSG_EI_DATA_CF "EI_DATA" # 5
239 @ MSG_EI_DATA_NF "data"
240 @ MSG_EI_VERSION_CF "EI_VERSION" # 6
241 @ MSG_EI_VERSION_NF "version"
242 @ MSG_EI_OSABI_CF "EI_OSABI" # 7
243 @ MSG_EI_OSABI_NF "osabi"
244 @ MSG_EI_ABIVERSION_CF "EI_ABIVERSION" # 8
245 @ MSG_EI_ABIVERSION_NF "abiversion"
247 @ MSG_ET_NONE_CF "ET_NONE" # 1
248 @ MSG_ET_NONE_NF "none"
249 @ MSG_ET_NONE_DMP "None"
250 @ MSG_ET_REL_CF "ET_REL" # 2
251 @ MSG_ET_REL_NF "rel"
252 @ MSG_ET_REL_DMP "Reloc"
253 @ MSG_ET_EXEC_CF "ET_EXEC" # 3
254 @ MSG_ET_EXEC_NF "exec"
255 @ MSG_ET_EXEC_DMP "Exec"
256 @ MSG_ET_DYN_CF "ET_DYN" # 4
257 @ MSG_ET_DYN_NF "dyn"
258 @ MSG_ET_DYN_DMP "Dyn"
259 @ MSG_ET_CORE_CF "ET_CORE" # 5
260 @ MSG_ET_CORE_NF "core"
261 @ MSG_ET_CORE_DMP "Core"
262 @ MSG_ET_SUNWPSEUDO_CF "ET_SUNWPSEUDO" # 0xfeff
263 @ MSG_ET_SUNWPSEUDO_NF "sunwpseudo"
264 @ MSG_ET_SUNWPSEUDO_DMP "SUNWPseudo"
266 @ MSG_EV_NONE_CF "EV_NONE" # 0
267 @ MSG_EV_NONE_NF "none"
268 @ MSG_EV_NONE_DMP "Invalid"
269 @ MSG_EV_CURRENT_CF "EV_CURRENT" # 1
270 @ MSG_EV_CURRENT_NF "current"
271 @ MSG_EV_CURRENT_DMP "Current"
273 # Elf header EF_* flags
275 @ MSG_EF_SPARC_32PLUS_CF "EF_SPARC_32PLUS" # 0x000100
276 @ MSG_EF_SPARC_32PLUS_NF "sparc_32plus"
277 @ MSG_EF_SPARC_SUN_US1_CF "EF_SPARC_SUN_US1" # 0x000200
278 @ MSG_EF_SPARC_SUN_US1_NF "sparc_sun_us1"
279 @ MSG_EF_SPARC_HAL_R1_CF "EF_SPARC_HAL_R1" # 0x000400
280 @ MSG_EF_SPARC_HAL_R1_NF "sparc_hal_r1"
281 @ MSG_EF_SPARC_SUN_US3_CF "EF_SPARC_SUN_US3" # x000800
282 @ MSG_EF_SPARC_SUN_US3_NF "sparc_sun_us3"
283 @ MSG_EF_SPARCV9_TSO_CF "EF_SPARCV9_TSO" # 0x0
284 @ MSG_EF_SPARCV9_TSO_NF "sparcv9_tso"
285 @ MSG_EF_SPARCV9_PSO_CF "EF_SPARCV9_PSO" # 0x1
286 @ MSG_EF_SPARCV9_PSO_NF "sparcv9_pso"
287 @ MSG_EF_SPARCV9_RMO_CF "EF_SPARCV9_RMO" # 0x2
288 @ MSG_EF_SPARCV9_RMO_NF "sparcv9_rmo"
290 @ MSG_OSABI_NONE_CF "ELFOSABI_NONE" #0
291 @ MSG_OSABI_NONE_NF "none"
292 @ MSG_OSABI_NONE_DMP "Generic SYSV"
293 @ MSG_OSABI_SYSV_CF "ELFOSABI_SYSV"
294 @ MSG_OSABI_SYSV_NF "sysv"
295 @ MSG_OSABI_HPUX_CF "ELFOSABI_HPUX" #1
296 @ MSG_OSABI_HPUX_NF "hpux"
297 @ MSG_OSABI_HPUX_DMP "HP-UX"
298 @ MSG_OSABI_NETBSD_CF "ELFOSABI_NETBSD" #2
299 @ MSG_OSABI_NETBSD_NF "netbsd"
300 @ MSG_OSABI_NETBSD_DMP "NetBSD"
301 @ MSG_OSABI_LINUX_CF "ELFOSABI_LINUX" #3
302 @ MSG_OSABI_LINUX_NF "linux"
303 @ MSG_OSABI_LINUX_DMP "Linux"
304 @ MSG_OSABI_SOLARIS_CF "ELFOSABI_SOLARIS" #6
305 @ MSG_OSABI_SOLARIS_NF "solaris"
306 @ MSG_OSABI_SOLARIS_DMP "Solaris"
307 @ MSG_OSABI_AIX_CF "ELFOSABI_AIX" #7
308 @ MSG_OSABI_AIX_NF "aix"
309 @ MSG_OSABI_AIX_DMP "AIX"
310 @ MSG_OSABI_IRIX_CF "ELFOSABI_IRIX" #8
311 @ MSG_OSABI_IRIX_NF "irix"
312 @ MSG_OSABI_IRIX_DMP "IRIX"
313 @ MSG_OSABI_FREEBSD_CF "ELFOSABI_FREEBSD" #9
314 @ MSG_OSABI_FREEBSD_NF "freebsd"
315 @ MSG_OSABI_FREEBSD_DMP "FreeBSD"
316 @ MSG_OSABI_TRU64_CF "ELFOSABI_TRU64" #10
317 @ MSG_OSABI_TRU64_NF "tru64"
318 @ MSG_OSABI_TRU64_DMP "Tru64"
319 @ MSG_OSABI_MODESTO_CF "ELFOSABI_MODESTO" #11
320 @ MSG_OSABI_MODESTO_NF "modesto"
321 @ MSG_OSABI_MODESTO_DMP "Modesto"
322 @ MSG_OSABI_OPENBSD_CF "ELFOSABI_OPENBSD" #12
323 @ MSG_OSABI_OPENBSD_NF "openbsd"
324 @ MSG_OSABI_OPENBSD_DMP "OpenBSD"
325 @ MSG_OSABI_OPENVMS_CF "ELFOSABI_OPENVMS" #13
326 @ MSG_OSABI_OPENVMS_NF "openvms"
327 @ MSG_OSABI_OPENVMS_DMP "OpenVMS"
328 @ MSG_OSABI_NSK_CF "ELFOSABI_NSK" #14
329 @ MSG_OSABI_NSK_NF "nsk"
330 @ MSG_OSABI_NSK_DMP "NSK"
331 @ MSG_OSABI_AROS_CF "ELFOSABI_AROS" #15
332 @ MSG_OSABI_AROS_NF "aros"
333 @ MSG_OSABI_AROS_DMP "Amiga Research OS"
334 @ MSG_OSABI_ARM_CF "ELFOSABI_ARM" #97
335 @ MSG_OSABI_ARM_NF "arm"
336 @ MSG_OSABI_ARM_DMP "ARM"
337 @ MSG_OSABI_STANDALONE_CF "ELFOSABI_STANDALONE" #255
338 @ MSG_OSABI_STANDALONE_NF "standalone"
339 @ MSG_OSABI_STANDALONE_DMP "Standalone"
341 @ MSG_EAV_SUNW_NONE_CF "EAV_SUNW_NONE" # 0
342 @ MSG_EAV_SUNW_NONE_NF "none"
343 @ MSG_EAV_SUNW_CURRENT_CF "EAV_SUNW_CURRENT" # 1
344 @ MSG_EAV_SUNW_CURRENT_NF "current"