xref: /titanic_52/usr/src/cmd/sgs/libconv/common/llib-lconv (revision 6d22b73346a02763769401e9f28b596670cc3d16)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License").  You may not use this file except in compliance
7 * with the License.
8 *
9 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10 * or http://www.opensolaris.org/os/licensing.
11 * See the License for the specific language governing permissions
12 * and limitations under the License.
13 *
14 * When distributing Covered Code, include this CDDL HEADER in each
15 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16 * If applicable, add the following below this CDDL HEADER, with the
17 * fields enclosed by brackets "[]" replaced with your own identifying
18 * information: Portions Copyright [yyyy] [name of copyright owner]
19 *
20 * CDDL HEADER END
21 */
22/*
23 * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
24 * Use is subject to license terms.
25 */
26/* LINTLIBRARY */
27/* PROTOLIB1 */
28
29/*
30 * Copyright 2005 Sun Microsystems, Inc.  All rights reserved.
31 * Use is subject to license terms.
32 */
33
34#pragma ident	"%Z%%M%	%I%	%E% SMI"
35
36#include	<stdlib.h>
37#include	<libelf.h>
38#include	<sys/machelf.h>
39#include	"sgs.h"
40
41void		conv_check_native(char **, char **);
42const char	*conv_binding_str(uint_t);
43const char	*conv_bindent_str(uint_t);
44const char	*conv_captag_str(uint64_t);
45const char	*conv_capval_str(uint64_t, uint64_t, ushort_t);
46const char	*conv_config_obj(ushort_t);
47const char	*conv_config_str(int);
48const char	*conv_d_type_str(Elf_Type);
49const char	*conv_deftag_str(int);
50const char	*conv_dlflag_str(int, int);
51const char	*conv_dlmode_str(int, int);
52const char	*conv_dyntag_str(uint64_t, ushort_t);
53const char	*conv_dynflag_str(uint_t);
54const char	*conv_dynflag_1_str(uint_t);
55const char	*conv_dynposflag_1_str(uint_t);
56const char	*conv_dynfeature_1_str(uint_t);
57const char	*conv_dwarf_ehe_str(uint_t);
58const char	*conv_eclass_str(uchar_t);
59const char	*conv_edata_str(uchar_t);
60const char	*conv_emach_str(ushort_t);
61const char	*conv_ever_str(uint_t);
62const char	*conv_etype_str(ushort_t);
63const char	*conv_eflags_str(ushort_t, uint_t);
64const char	*conv_hwcap_1_str(uint64_t, ushort_t);
65const char	*conv_hwcap_1_386_str(uint64_t);
66const char	*conv_hwcap_1_SPARC_str(uint64_t);
67const char	*conv_sfcap_1_str(uint64_t, ushort_t);
68const char	*conv_grphdrflags_str(uint_t);
69const char	*conv_info_bind_str(uchar_t);
70const char	*conv_info_type_str(ushort_t, uchar_t);
71Isa_desc	*conv_isalist(void);
72const char	*conv_lddstub(int);
73const char	*conv_phdrflg_str(uint_t);
74const char	*conv_phdrtyp_str(ushort_t, uint_t);
75const char	*conv_reject_str(Rej_desc *);
76const char	*conv_reloc_type_str(ushort_t, uint_t);
77const char	*conv_reloc_amd64_type_str(uint_t);
78const char	*conv_reloc_SPARC_type_str(uint_t);
79const char	*conv_reloc_386_type_str(uint_t);
80const char	*conv_sym_dem(const char *);
81const char	*conv_sym_stother(uchar_t);
82const char	*conv_sym_value_str(ushort_t, uint_t, uint64_t);
83const char	*conv_sym_SPARC_value_str(uint64_t);
84const char	*conv_secflg_str(ushort_t, uint_t);
85const char	*conv_secinfo_str(uint_t, uint_t);
86const char	*conv_sectyp_str(ushort_t, uint_t);
87const char	*conv_segaflg_str(uint_t);
88const char	*conv_shndx_str(ushort_t);
89int		conv_sys_eclass(void);
90Uts_desc	*conv_uts(void);
91const char	*conv_upm_string(const char *, const char *, const char *,
92		    size_t);
93const char	*conv_verflg_str(ushort_t);
94