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