xref: /onnv-gate/usr/src/cmd/sgs/elfedit/modules/common/syminfo.msg (revision 5308:2cc1023bdfa4)
15088Sab196087#
25088Sab196087# CDDL HEADER START
35088Sab196087#
45088Sab196087# The contents of this file are subject to the terms of the
55088Sab196087# Common Development and Distribution License (the "License").
65088Sab196087# You may not use this file except in compliance with the License.
75088Sab196087#
85088Sab196087# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95088Sab196087# or http://www.opensolaris.org/os/licensing.
105088Sab196087# See the License for the specific language governing permissions
115088Sab196087# and limitations under the License.
125088Sab196087#
135088Sab196087# When distributing Covered Code, include this CDDL HEADER in each
145088Sab196087# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155088Sab196087# If applicable, add the following below this CDDL HEADER, with the
165088Sab196087# fields enclosed by brackets "[]" replaced with your own identifying
175088Sab196087# information: Portions Copyright [yyyy] [name of copyright owner]
185088Sab196087#
195088Sab196087# CDDL HEADER END
205088Sab196087#
215088Sab196087
225088Sab196087#
235088Sab196087# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
245088Sab196087# Use is subject to license terms.
255088Sab196087#
265088Sab196087# ident	"%Z%%M%	%I%	%E% SMI"
275088Sab196087
285088Sab196087@ _START_
295088Sab196087
305088Sab196087# Message file for elfedit 'syminfo' module
315088Sab196087
325088Sab196087@ MSG_ID_ELFEDIT_SYMINFO
335088Sab196087
345088Sab196087
355088Sab196087# Debug messages
365088Sab196087
375088Sab196087@ MSG_DEBUG_S_OK	"[%d: %s][%d].%s: value unchanged: %s\n"
385088Sab196087@ MSG_DEBUG_S_CHG	"[%d: %s][%d].%s: change from %s to %s\n"
395088Sab196087@ MSG_DEBUG_X_OK	"[%d: %s][%d].%s: value unchanged: %#x\n"
405088Sab196087@ MSG_DEBUG_X_CHG	"[%d: %s][%d].%s: change from %#x to %#x\n"
415088Sab196087@ MSG_DEBUG_FNDNEEDED	"[%d: %s][%d]: DT_NEEDED element for si_boundto: %s\n"
425088Sab196087@ MSG_DEBUG_CONVNULL	"[%d: %s][%d]: No existing %s to modify. Converting \
435088Sab196087			 extra DT_NULL\n"
445088Sab196087@ MSG_DEBUG_CHGSYMINFO0	"[%d: %s][%d]: ELF warning: element [0] is expected to \
455088Sab196087			 contain SYMINFO_VERSION, and should not be altered\n"
465088Sab196087
475088Sab196087# Errors
485088Sab196087
495088Sab196087@ MSG_ERR_NOEXTRANULL	"[%d: %s]: Dynamic section does not have room to add \
505088Sab196087			 a new element\n"
515088Sab196087
525088Sab196087
535088Sab196087
545088Sab196087# Module description
555088Sab196087
565088Sab196087@ MSG_MOD_DESC		"Syminfo Section"
575088Sab196087
585088Sab196087
595088Sab196087# 1-line description strings
605088Sab196087
615088Sab196087@ MSG_DESC_DUMP		"Dump Syminfo Section"
625088Sab196087@ MSG_DESC_SI_BOUNDTO	"Symbol to Object Binding"
635088Sab196087@ MSG_DESC_SI_FLAGS	"Binding Flags"
645088Sab196087
655088Sab196087
665088Sab196087# Command option description strings
675088Sab196087
685088Sab196087@ MSG_OPTDESC_NEEDED		"\
695088Sab196087   The value argument is a string giving the name of an ELF\n\
705088Sab196087   object. The si_boundto field will be set to the index of the\n\
715088Sab196087   corresponding DT_NEEDED entry of the dynamic section. If no\n\
725088Sab196087   such DT_NEEDED entry exists in the dynamic section and there\n\
735088Sab196087   is sufficient room, it will be added in order to satisfy this\n\
745088Sab196087   request\n"
755088Sab196087
765088Sab196087@ MSG_OPTDESC_SYMNDX		"\
775088Sab196087   The sym argument supplies a numeric index into the syminfo\n\
785088Sab196087   section instead of the name of the symbol.\n".
795088Sab196087
805088Sab196087
815088Sab196087# Command argument descriptions
825088Sab196087
835088Sab196087@ MSG_A1_SYM		"Name of desired symbol within symbol table.\n"
845088Sab196087
855088Sab196087@ MSG_A2_DESC_SI_BOUNDTO	"\
865088Sab196087   An integer value that describes the object this symbol is\n\
875088Sab196087   bound to. SYMINFO_BT_ symbolic constants are accepted to\n\
885088Sab196087   represent special values (self, parent, none), or the value\n\
895088Sab196087   can be the index of a dynamic section element.\n"
905088Sab196087
915088Sab196087@ MSG_A2_DESC_SI_FLAGS	"\
925088Sab196087   New value for symbol binding flags. SYMINFO_FLG_ symbolic\n\
935088Sab196087   constants are accepted, as is any integer.\n"
945088Sab196087
955088Sab196087
965088Sab196087
975088Sab196087# Help strings
985088Sab196087
995088Sab196087@ MSG_HELP_DUMP	"   \
1005088Sab196087   The syminfo:dump command is used to display information\n\
1015088Sab196087   from the syminfo section using the same style used by the\n\
1025088Sab196087   elfdump program.\n\
1035088Sab196087   \n\
1045088Sab196087   The syminfo section augments the information found in the\n\
1055088Sab196087   dynamic symbol table.\n\
1065088Sab196087   \n\
107*5308Sab196087   If syminfo:dump is called without arguments, syminfo information\n\
1085088Sab196087   for every symbol in the symbol table is shown. If called with\n\
1095088Sab196087   the sym argument, the information for that symbol is\n\
1105088Sab196087   displayed.\n"
1115088Sab196087
1125088Sab196087@ MSG_HELP_SI_BOUNDTO	"   \
1135088Sab196087   The syminfo:si_boundto command is used to display or alter\n\
1145088Sab196087   the external object the symbol is bound to. This information\n\
1155088Sab196087   is found in the si_boundto field of a syminfo structure. It is\n\
1165088Sab196087   an integer that contains one of the special SYMINFO_BT_ values,\n\
1175088Sab196087   or alternaltively, an index into the dynamic section of the\n\
1185088Sab196087   ELF object.\n\
1195088Sab196087   \n\
1205088Sab196087   If syminfo:si_boundto is called without arguments, the value of\n\
1215088Sab196087   si_boundto for every symbol in the symbol table is shown. If\n\
1225088Sab196087   called with the sym argument, the si_boundto information for\n\
1235088Sab196087   that is displayed. If both arguments are present, the second\n\
1245088Sab196087   argument supplies a new value for si_boundto.\n\
1255088Sab196087   \n\
1265088Sab196087   By default, value is an integer, which will have one of the\n\
1275088Sab196087   special SYMINFO_BT_ values, or which will be the index of an\n\
1285088Sab196087   element in the dynamic section. Alternatively, the -needed\n\
1295088Sab196087   option can be used to specify a string with the name of an\n\
1305088Sab196087   object. If -needed is is used, si_boundto will be set to the\n\
1315088Sab196087   index of the DT_NEEDED entry in the dynamic section that\n\
1325088Sab196087   corresponds to the given name. If no such DT_NEEDED element\n\
1335088Sab196087   exists, and room is available to add it, it will be added in\n\
1345088Sab196087   order to faciliate this operation.\n"
1355088Sab196087
1365088Sab196087@ MSG_HELP_SI_FLAGS	"   \
1375088Sab196087   Examine or modify the syminfo binding flags associated\n\
1385088Sab196087   with a given symbol. This information is found in the\n\
1395088Sab196087   si_flags field of the syminfo structure.\n\
1405088Sab196087   \n\
1415088Sab196087   If syminfo:si_flags is called without arguments, the value\n\
1425088Sab196087   of si_flags for every symbol in the symbol table is shown.\n\
1435088Sab196087   If called with the sym argument, the si_flags information\n\
1445088Sab196087   for that symbol is displayed. If one or more value arguments\n\
1455088Sab196087   are present, the the following steps are taken:\n\
1465088Sab196087   \n   \
1475088Sab196087   o\tAll the value arguments are OR'd together.\n\
1485088Sab196087   \n   \
1495088Sab196087   o\tIf the -cmp option has been specified, the new value\n\
1505088Sab196087   \tis complemented.\n\
1515088Sab196087   \n   \
1525088Sab196087   o\tThe si_flags field of the syminfo structure is updated\n\
1535088Sab196087   \twith the new value. If -and is specified, the new value is\n\
1545088Sab196087   \tAND'd against the existing value. If -or is specified,\n\
1555088Sab196087   \tthe new value is OR'd against the existing value. If\n\
1565088Sab196087   \tneither -and or -or are specified, the new value replaces\n\
1575088Sab196087   \tthe existing value.\n"
1585088Sab196087
1595088Sab196087
1605088Sab196087@ _END_
1615088Sab196087
1625088Sab196087
1635088Sab196087# The following strings represent reserved words, files, pathnames and symbols.
1645088Sab196087# Reference to this strings is via the MSG_ORIG() macro, and thus no message
1655088Sab196087# translation is required.
1665088Sab196087
1675088Sab196087
1685088Sab196087# Miscellaneous clutter
1695088Sab196087@ MSG_STR_EMPTY			""
1705088Sab196087@ MSG_STR_MINUS_NEEDED		"-needed"
1715088Sab196087@ MSG_STR_MINUS_SYMNDX		"-symndx"
1725088Sab196087@ MSG_STR_SYM			"sym"
1735088Sab196087@ MSG_STR_VALUE			"value"
1745088Sab196087
1755088Sab196087
1765088Sab196087# Format strings
1775088Sab196087
1785088Sab196087@ MSG_FMT_WORDVALNL		"%u\n"
1795088Sab196087@ MSG_FMT_HEXNUMNL		"%#x\n"
1805088Sab196087@ MSG_FMT_STRNL			"%s\n"
1815088Sab196087
1825088Sab196087
1835088Sab196087# Module name
1845088Sab196087
1855088Sab196087@ MSG_MOD_NAME		"syminfo"
1865088Sab196087
1875088Sab196087
1885088Sab196087# Command names
1895088Sab196087
1905088Sab196087@ MSG_CMD_DUMP		"dump"
1915088Sab196087@ MSG_CMD_SI_BOUNDTO	"si_boundto"
1925088Sab196087@ MSG_CMD_SI_FLAGS	"si_flags"
193