1d29b2c44Sab196087#
2d29b2c44Sab196087# CDDL HEADER START
3d29b2c44Sab196087#
4d29b2c44Sab196087# The contents of this file are subject to the terms of the
5d29b2c44Sab196087# Common Development and Distribution License (the "License").
6d29b2c44Sab196087# You may not use this file except in compliance with the License.
7d29b2c44Sab196087#
8d29b2c44Sab196087# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9d29b2c44Sab196087# or http://www.opensolaris.org/os/licensing.
10d29b2c44Sab196087# See the License for the specific language governing permissions
11d29b2c44Sab196087# and limitations under the License.
12d29b2c44Sab196087#
13d29b2c44Sab196087# When distributing Covered Code, include this CDDL HEADER in each
14d29b2c44Sab196087# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15d29b2c44Sab196087# If applicable, add the following below this CDDL HEADER, with the
16d29b2c44Sab196087# fields enclosed by brackets "[]" replaced with your own identifying
17d29b2c44Sab196087# information: Portions Copyright [yyyy] [name of copyright owner]
18d29b2c44Sab196087#
19d29b2c44Sab196087# CDDL HEADER END
20d29b2c44Sab196087#
21d29b2c44Sab196087
22d29b2c44Sab196087#
23d29b2c44Sab196087# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
24d29b2c44Sab196087# Use is subject to license terms.
25d29b2c44Sab196087#
26d29b2c44Sab196087# ident	"%Z%%M%	%I%	%E% SMI"
27d29b2c44Sab196087
28d29b2c44Sab196087@ _START_
29d29b2c44Sab196087
30d29b2c44Sab196087# Message file for elfedit 'syminfo' module
31d29b2c44Sab196087
32d29b2c44Sab196087@ MSG_ID_ELFEDIT_SYMINFO
33d29b2c44Sab196087
34d29b2c44Sab196087
35d29b2c44Sab196087# Debug messages
36d29b2c44Sab196087
37d29b2c44Sab196087@ MSG_DEBUG_S_OK	"[%d: %s][%d].%s: value unchanged: %s\n"
38d29b2c44Sab196087@ MSG_DEBUG_S_CHG	"[%d: %s][%d].%s: change from %s to %s\n"
39d29b2c44Sab196087@ MSG_DEBUG_X_OK	"[%d: %s][%d].%s: value unchanged: %#x\n"
40d29b2c44Sab196087@ MSG_DEBUG_X_CHG	"[%d: %s][%d].%s: change from %#x to %#x\n"
41d29b2c44Sab196087@ MSG_DEBUG_FNDNEEDED	"[%d: %s][%d]: DT_NEEDED element for si_boundto: %s\n"
42d29b2c44Sab196087@ MSG_DEBUG_CONVNULL	"[%d: %s][%d]: No existing %s to modify. Converting \
43d29b2c44Sab196087			 extra DT_NULL\n"
44d29b2c44Sab196087@ MSG_DEBUG_CHGSYMINFO0	"[%d: %s][%d]: ELF warning: element [0] is expected to \
45d29b2c44Sab196087			 contain SYMINFO_VERSION, and should not be altered\n"
46d29b2c44Sab196087
47d29b2c44Sab196087# Errors
48d29b2c44Sab196087
49d29b2c44Sab196087@ MSG_ERR_NOEXTRANULL	"[%d: %s]: Dynamic section does not have room to add \
50d29b2c44Sab196087			 a new element\n"
51d29b2c44Sab196087
52d29b2c44Sab196087
53d29b2c44Sab196087
54d29b2c44Sab196087# Module description
55d29b2c44Sab196087
56d29b2c44Sab196087@ MSG_MOD_DESC		"Syminfo Section"
57d29b2c44Sab196087
58d29b2c44Sab196087
59d29b2c44Sab196087# 1-line description strings
60d29b2c44Sab196087
61d29b2c44Sab196087@ MSG_DESC_DUMP		"Dump Syminfo Section"
62d29b2c44Sab196087@ MSG_DESC_SI_BOUNDTO	"Symbol to Object Binding"
63d29b2c44Sab196087@ MSG_DESC_SI_FLAGS	"Binding Flags"
64d29b2c44Sab196087
65d29b2c44Sab196087
66d29b2c44Sab196087# Command option description strings
67d29b2c44Sab196087
68d29b2c44Sab196087@ MSG_OPTDESC_NEEDED		"\
69d29b2c44Sab196087   The value argument is a string giving the name of an ELF\n\
70d29b2c44Sab196087   object. The si_boundto field will be set to the index of the\n\
71d29b2c44Sab196087   corresponding DT_NEEDED entry of the dynamic section. If no\n\
72d29b2c44Sab196087   such DT_NEEDED entry exists in the dynamic section and there\n\
73d29b2c44Sab196087   is sufficient room, it will be added in order to satisfy this\n\
74d29b2c44Sab196087   request\n"
75d29b2c44Sab196087
76d29b2c44Sab196087@ MSG_OPTDESC_SYMNDX		"\
77d29b2c44Sab196087   The sym argument supplies a numeric index into the syminfo\n\
78d29b2c44Sab196087   section instead of the name of the symbol.\n".
79d29b2c44Sab196087
80d29b2c44Sab196087
81d29b2c44Sab196087# Command argument descriptions
82d29b2c44Sab196087
83d29b2c44Sab196087@ MSG_A1_SYM		"Name of desired symbol within symbol table.\n"
84d29b2c44Sab196087
85d29b2c44Sab196087@ MSG_A2_DESC_SI_BOUNDTO	"\
86d29b2c44Sab196087   An integer value that describes the object this symbol is\n\
87d29b2c44Sab196087   bound to. SYMINFO_BT_ symbolic constants are accepted to\n\
88d29b2c44Sab196087   represent special values (self, parent, none), or the value\n\
89d29b2c44Sab196087   can be the index of a dynamic section element.\n"
90d29b2c44Sab196087
91d29b2c44Sab196087@ MSG_A2_DESC_SI_FLAGS	"\
92d29b2c44Sab196087   New value for symbol binding flags. SYMINFO_FLG_ symbolic\n\
93d29b2c44Sab196087   constants are accepted, as is any integer.\n"
94d29b2c44Sab196087
95d29b2c44Sab196087
96d29b2c44Sab196087
97d29b2c44Sab196087# Help strings
98d29b2c44Sab196087
99d29b2c44Sab196087@ MSG_HELP_DUMP	"   \
100d29b2c44Sab196087   The syminfo:dump command is used to display information\n\
101d29b2c44Sab196087   from the syminfo section using the same style used by the\n\
102d29b2c44Sab196087   elfdump program.\n\
103d29b2c44Sab196087   \n\
104d29b2c44Sab196087   The syminfo section augments the information found in the\n\
105d29b2c44Sab196087   dynamic symbol table.\n\
106d29b2c44Sab196087   \n\
107*ad212f6fSab196087   If syminfo:dump is called without arguments, syminfo information\n\
108d29b2c44Sab196087   for every symbol in the symbol table is shown. If called with\n\
109d29b2c44Sab196087   the sym argument, the information for that symbol is\n\
110d29b2c44Sab196087   displayed.\n"
111d29b2c44Sab196087
112d29b2c44Sab196087@ MSG_HELP_SI_BOUNDTO	"   \
113d29b2c44Sab196087   The syminfo:si_boundto command is used to display or alter\n\
114d29b2c44Sab196087   the external object the symbol is bound to. This information\n\
115d29b2c44Sab196087   is found in the si_boundto field of a syminfo structure. It is\n\
116d29b2c44Sab196087   an integer that contains one of the special SYMINFO_BT_ values,\n\
117d29b2c44Sab196087   or alternaltively, an index into the dynamic section of the\n\
118d29b2c44Sab196087   ELF object.\n\
119d29b2c44Sab196087   \n\
120d29b2c44Sab196087   If syminfo:si_boundto is called without arguments, the value of\n\
121d29b2c44Sab196087   si_boundto for every symbol in the symbol table is shown. If\n\
122d29b2c44Sab196087   called with the sym argument, the si_boundto information for\n\
123d29b2c44Sab196087   that is displayed. If both arguments are present, the second\n\
124d29b2c44Sab196087   argument supplies a new value for si_boundto.\n\
125d29b2c44Sab196087   \n\
126d29b2c44Sab196087   By default, value is an integer, which will have one of the\n\
127d29b2c44Sab196087   special SYMINFO_BT_ values, or which will be the index of an\n\
128d29b2c44Sab196087   element in the dynamic section. Alternatively, the -needed\n\
129d29b2c44Sab196087   option can be used to specify a string with the name of an\n\
130d29b2c44Sab196087   object. If -needed is is used, si_boundto will be set to the\n\
131d29b2c44Sab196087   index of the DT_NEEDED entry in the dynamic section that\n\
132d29b2c44Sab196087   corresponds to the given name. If no such DT_NEEDED element\n\
133d29b2c44Sab196087   exists, and room is available to add it, it will be added in\n\
134d29b2c44Sab196087   order to faciliate this operation.\n"
135d29b2c44Sab196087
136d29b2c44Sab196087@ MSG_HELP_SI_FLAGS	"   \
137d29b2c44Sab196087   Examine or modify the syminfo binding flags associated\n\
138d29b2c44Sab196087   with a given symbol. This information is found in the\n\
139d29b2c44Sab196087   si_flags field of the syminfo structure.\n\
140d29b2c44Sab196087   \n\
141d29b2c44Sab196087   If syminfo:si_flags is called without arguments, the value\n\
142d29b2c44Sab196087   of si_flags for every symbol in the symbol table is shown.\n\
143d29b2c44Sab196087   If called with the sym argument, the si_flags information\n\
144d29b2c44Sab196087   for that symbol is displayed. If one or more value arguments\n\
145d29b2c44Sab196087   are present, the the following steps are taken:\n\
146d29b2c44Sab196087   \n   \
147d29b2c44Sab196087   o\tAll the value arguments are OR'd together.\n\
148d29b2c44Sab196087   \n   \
149d29b2c44Sab196087   o\tIf the -cmp option has been specified, the new value\n\
150d29b2c44Sab196087   \tis complemented.\n\
151d29b2c44Sab196087   \n   \
152d29b2c44Sab196087   o\tThe si_flags field of the syminfo structure is updated\n\
153d29b2c44Sab196087   \twith the new value. If -and is specified, the new value is\n\
154d29b2c44Sab196087   \tAND'd against the existing value. If -or is specified,\n\
155d29b2c44Sab196087   \tthe new value is OR'd against the existing value. If\n\
156d29b2c44Sab196087   \tneither -and or -or are specified, the new value replaces\n\
157d29b2c44Sab196087   \tthe existing value.\n"
158d29b2c44Sab196087
159d29b2c44Sab196087
160d29b2c44Sab196087@ _END_
161d29b2c44Sab196087
162d29b2c44Sab196087
163d29b2c44Sab196087# The following strings represent reserved words, files, pathnames and symbols.
164d29b2c44Sab196087# Reference to this strings is via the MSG_ORIG() macro, and thus no message
165d29b2c44Sab196087# translation is required.
166d29b2c44Sab196087
167d29b2c44Sab196087
168d29b2c44Sab196087# Miscellaneous clutter
169d29b2c44Sab196087@ MSG_STR_EMPTY			""
170d29b2c44Sab196087@ MSG_STR_MINUS_NEEDED		"-needed"
171d29b2c44Sab196087@ MSG_STR_MINUS_SYMNDX		"-symndx"
172d29b2c44Sab196087@ MSG_STR_SYM			"sym"
173d29b2c44Sab196087@ MSG_STR_VALUE			"value"
174d29b2c44Sab196087
175d29b2c44Sab196087
176d29b2c44Sab196087# Format strings
177d29b2c44Sab196087
178d29b2c44Sab196087@ MSG_FMT_WORDVALNL		"%u\n"
179d29b2c44Sab196087@ MSG_FMT_HEXNUMNL		"%#x\n"
180d29b2c44Sab196087@ MSG_FMT_STRNL			"%s\n"
181d29b2c44Sab196087
182d29b2c44Sab196087
183d29b2c44Sab196087# Module name
184d29b2c44Sab196087
185d29b2c44Sab196087@ MSG_MOD_NAME		"syminfo"
186d29b2c44Sab196087
187d29b2c44Sab196087
188d29b2c44Sab196087# Command names
189d29b2c44Sab196087
190d29b2c44Sab196087@ MSG_CMD_DUMP		"dump"
191d29b2c44Sab196087@ MSG_CMD_SI_BOUNDTO	"si_boundto"
192d29b2c44Sab196087@ MSG_CMD_SI_FLAGS	"si_flags"
193