d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# CDDL HEADER START
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# The contents of this file are subject to the terms of the
d29b2c4438482eb00488be49a1f5d6835f455546ab# Common Development and Distribution License (the "License").
d29b2c4438482eb00488be49a1f5d6835f455546ab# You may not use this file except in compliance with the License.
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d29b2c4438482eb00488be49a1f5d6835f455546ab# or http://www.opensolaris.org/os/licensing.
d29b2c4438482eb00488be49a1f5d6835f455546ab# See the License for the specific language governing permissions
d29b2c4438482eb00488be49a1f5d6835f455546ab# and limitations under the License.
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# When distributing Covered Code, include this CDDL HEADER in each
d29b2c4438482eb00488be49a1f5d6835f455546ab# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d29b2c4438482eb00488be49a1f5d6835f455546ab# If applicable, add the following below this CDDL HEADER, with the
d29b2c4438482eb00488be49a1f5d6835f455546ab# fields enclosed by brackets "[]" replaced with your own identifying
d29b2c4438482eb00488be49a1f5d6835f455546ab# information: Portions Copyright [yyyy] [name of copyright owner]
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab# CDDL HEADER END
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab#
4f680cc668fa6cf678c531083400ade9a9c7934cAli Bahrami# Copyright 2009 Sun Microsystems, Inc. All rights reserved.
d29b2c4438482eb00488be49a1f5d6835f455546ab# Use is subject to license terms.
d29b2c4438482eb00488be49a1f5d6835f455546ab#
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ _START_
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab# Message file for elfedit 'ehdr' module
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ID_ELFEDIT_EHDR
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab# Debug messages
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DEBUG_E_S_OK "ehdr.%s: value unchanged: %s\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DEBUG_E_S_CHG "ehdr.%s: change from %s to %s\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DEBUG_E_D_OK "ehdr.%s: value unchanged: %d\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DEBUG_E_D_CHG "ehdr.%s: change from %d to %d\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DEBUG_E_LLX_OK "ehdr.%s: value unchanged: %#llx\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DEBUG_E_LLX_CHG "ehdr.%s: change from %#llx to %#llx\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DEBUG_EI_S_S_OK "ehdr.e_ident[%s]: value unchanged: %s\n";
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DEBUG_EI_S_S_CHG "ehdr.e_ident[%s]: change from %s to %s\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DEBUG_EI_D_X_OK "ehdr.e_ident[%d]: value unchanged: %#x\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DEBUG_EI_D_X_CHG "ehdr.e_ident[%d]: change from %#x to %#x\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DEBUG_SHDR0_D_OK "shdr[0].%s: value unchanged: %d\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DEBUG_SHDR0_D_CHG "shdr[0].%s: change from %d to %d\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DEBUG_NOTSTRTAB "ehdr.%s: ELF warning: section is not a \
d29b2c4438482eb00488be49a1f5d6835f455546ab string table: %d\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab# Module description
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_MOD_DESC "ELF Header"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab# 1-line description strings
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_DUMP "Dump ELF Header"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_IDENT "ELF Identification"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_TYPE "Object File Type"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_MACHINE "Machine Architecture"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_VERSION "Object File Version"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_ENTRY "Starting Virtual Address"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_PHOFF "Program Header Table File Offset"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_SHOFF "Section Header Table File Offset"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_FLAGS "Processor-Specific Flags"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_EHSIZE "ELF Header's Size"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_PHENTSIZE "Program Header Table Entry Size"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_PHNUM "Number Program Header Entries"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_SHENTSIZE "Section Header Table Entry Size"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_SHNUM "Number Section Header Entries"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_E_SHSTRNDX "Section Name String Table Index"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_EI_MAG0 "File Identification Byte #1"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_EI_MAG1 "File Identification Byte #2"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_EI_MAG2 "File Identification Byte #3"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_EI_MAG3 "File Identification Byte #4"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_EI_CLASS "File Class (System Word Size)"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_EI_DATA "Data Encoding (Byte Order)"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_EI_VERSION "File Version"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_EI_OSABI "Operating System / ABI Identification"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_DESC_EI_ABIVERSION "ABI version"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab# Command option description strings
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_OPTDESC_SHNDX "\
d29b2c4438482eb00488be49a1f5d6835f455546ab Interpret the sec argument as a section index rather than\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab as a section name. section can be one of the well known SHN_\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab symbolic constants, or any integer.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_OPTDESC_SHTYP "\
d29b2c4438482eb00488be49a1f5d6835f455546ab Interpret the sec argument as a section type rather than\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab as a section name. section can be one of the well known SHT_\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab symbolic constants, or any integer.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab# Command argument description strings
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_IDENT_NDX "\
d29b2c4438482eb00488be49a1f5d6835f455546ab Index of element of e_ident[] array. This can be\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab an integer value, or any of the EI_ symbolic constants\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab defined in /usr/include/sys/elf.h.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_IDENT_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for element of e_ident[] array. This can be\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab an integer value, or any symbolic constants defined in\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab /usr/include/sys/elf.h that apply to the selected item.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_TYPE_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for type of the ELF object. This can be\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab an integer value, or any of the ET_ symbolic constants\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab defined in /usr/include/sys/elf.h.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_MACHINE_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for architecture of the ELF object. This can be\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab an integer value, or any of the EM_ symbolic constants\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab defined in /usr/include/sys/elf.h.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_VERSION_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for version of the ELF object. This can be\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab an integer value, or any of the EV_ symbolic constants\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab defined in /usr/include/sys/elf.h.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_ENTRY_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for virtual address to which the system first transfers control.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_PHOFF_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for program header table's file offset.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_SHOFF_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for section header table's file offset.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_FLAGS_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for processor-specific flags. This can be an integer\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab value, or any of the EF_ symbolic constants defined in the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab system header files\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_EHSIZE_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for size of ELF header, in bytes.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_PHENTSIZE_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for size of one entry in the file's program header table,\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab in bytes.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_PHNUM_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for number of entries in the program header table.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_SHENTSIZE_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for size of one entry in the file's section header table,\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab in bytes.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_SHNUM_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for number of entries in the section header table.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_E_SHSTRNDX_SEC "\
d29b2c4438482eb00488be49a1f5d6835f455546ab String table section containing section name strings.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab By default, this argument is interpreted as the name\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab of the desired section. The section index of the first\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab section with the specified name is used.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If -shndx is set, then sec is a section index, and is\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab interpreted as an integer, or one of the well known SHN_\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab symbolic constant names.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If -shtyp is set, then sec is a section type, and is\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab interpreted as an integer, or one of the well known SHT_\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab symbolic constant names. The section index of the first\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab section with the specified type is used.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_EI_MAG0_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for first byte of file magic number.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_EI_MAG1_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for second byte of file magic number.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_EI_MAG2_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for third byte of file magic number.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_EI_MAG3_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for fourth byte of file magic number.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_EI_CLASS_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for file's class. This can be an integer value, or any of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the ELFCLASS symbolic constants defined in /usr/include/sys/elf.h.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_EI_DATA_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for file's data encoding. This can be an integer\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab value, or any ELFDATA symbolic constants defined in\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab /usr/include/sys/elf.h.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab# Note: EI_VERSION uses the same string as E_VERSION, above
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_EI_OSABI_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for ABI identification of the ELF object. This can be\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab an integer value, or any of the ELFOSABI_ symbolic constants\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab defined in /usr/include/sys/elf.h.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_ARGDESC_EI_ABIVERSION_VALUE "\
d29b2c4438482eb00488be49a1f5d6835f455546ab New value for version of the ABI to which the object is targeted.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab# Help strings
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_DUMP " \
d29b2c4438482eb00488be49a1f5d6835f455546ab The ehdr:dump command is used to display the contents of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the ELF header using the same style used by the elfdump program.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_IDENT " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify ELF Identification information for the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab object. This information is found in the e_ident array in\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_ident is called without any argument, all values\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the value in e_ident are shown. If called with the index\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab argument, the selected element of e_ident is shown. If also\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab called with the value argument, the selected e_ident element\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab is updated with the new value.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_TYPE " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the object file type. This information is\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab found in the e_type field of the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_type is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_type is shown. If called with the value argument, the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_type field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the type code of an object does not change the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab other contents of the file, and is unlikely to produce a usable\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ELF object.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_MACHINE " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the required architecture of the object.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab This information is found in the e_machine field of the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_machine is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_machine is shown. If called with the value argument, the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_machine field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the architecture code of an object does not change the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab other contents of the file, and is unlikely to produce a usable\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ELF object.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_VERSION " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the object file version. This information\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab is found in the e_version field of the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_version is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_version is shown. If called with the value argument, the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_version field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: The e_ident[EI_VERSION] element of the ELF header\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab identification array also contains a version value. These\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab two fields should be set to the same value. Use the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ehdr:ei_version command to change that element.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_ENTRY " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the virtual address to which the system\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab first transfers control, thus starting the process. This\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab information is found in the e_entry field of the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If the file has no associated entry point, this member\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab holds zero.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_entry is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_entry is shown. If called with the value argument, the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_entry field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: The entry point of an object is highly system\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab dependent. Changing it is likely to produce an object that\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab does not run properly.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_PHOFF " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the program header table's file offset.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab This information is found in the e_phoff field of the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ELF header. If the file has no program header table, this\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab member holds zero.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_phoff is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_phoff is shown. If called with the value argument, the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_phoff field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the e_phoff field of an object does not change\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the actual layout of the file or move the program header table.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab As such, changing this value is likely to produce an unusable\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ELF object.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_SHOFF " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the section header table's file offset.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab This information is found in the e_shoff field of the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ELF header. If the file has no section header table, this\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab member holds zero.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_shoff is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_shoff is shown. If called with the value argument, the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_shoff field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the e_shoff field of an object does not change\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the actual layout of the file or move the section header table.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab As such, changing this value is likely to produce an unusable\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ELF object.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_FLAGS " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the processor specific flags associated\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab with the file. This information is found in the e_flags\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab field of the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_flags is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_flags is shown. If called with one or more flag_value\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab arguments, the the following steps are taken:\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n \
d29b2c4438482eb00488be49a1f5d6835f455546ab o\tAll the flag_value arguments are OR'd together.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n \
d29b2c4438482eb00488be49a1f5d6835f455546ab o\tIf the -cmp option has been specified, the new value\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \tis complemented.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n \
d29b2c4438482eb00488be49a1f5d6835f455546ab o\tThe e_flags field of the ELF header is updated with\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \tthe new value. If -and is specified, the new value is\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \tAND'd against the existing value. If -or is specified,\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \tthe new value is OR'd against the existing value. If\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \tneither -and or -or are specified, the new value replaces\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \tthe existing value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the e_flags field of an object does not change\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the code contained in the file. Setting a flag that implies\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab an ability the existing code cannot support will produce an\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab unusable ELF object.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_EHSIZE " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the size of the ELF header. This information\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab is found in the e_ehsize field of the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_ehsize is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_ehsize is shown. If called with the value argument, the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_ehsize field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the e_ehsize field of the ELF header does not\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab change the size of the actual ELF header data structure. Setting\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab it to a different value is likely to produce an unusable ELF object.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_PHENTSIZE " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the size of one entry in the file's program\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab header table. This information is found in the e_phentsize\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab field of the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_phentsize is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_phentsize is shown. If called with the value argument, the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_phentsize field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the e_phentsize field of the ELF header does\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab not change the size of the actual program header array elements.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Setting it to a different value is likely to produce an unusable\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ELF object.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_PHNUM " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the number of entries in the program header\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab table. This information is found in the e_phnum field of the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ELF header, or in the sh_link field of the first section header\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab in the case of extended program indexes.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If the number of program headers is greater than or equal\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab to PN_XNUM (0xffff), e_phnum has the value PN_XNUM, and the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab actual number of program header table entries is contained\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab in the sh_info field of the section header at index 0.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_phnum is called without an argument, the number\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab of program headers is shown. If called with the value argument,\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the number is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing e_phnum and/or the sh_link field of the first\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab section header does not change the size of the actual program\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab header array in the file.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_SHENTSIZE " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the size of one entry in the file's section\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab header table. This information is found in the e_shentsize\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab field of the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_shentsize is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_shentsize is shown. If called with the value argument, the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_shentsize field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the e_shentsize field of the ELF header does\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab not change the size of the actual section header array elements.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Setting it to a different value is likely to produce an unusable\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ELF object.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_SHNUM " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the number of entries in the section header\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab table. This information is found in the e_shnum field of the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ELF header, or in the sh_size field of the first section header\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab in the case of extended section indexes.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If the number of sections is greater than or equal to\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab SHN_LORESERVE (0xff00), e_shnum has the value zero, and\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the actual number of section header table entries is\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab contained in the sh_size field of the section header\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab at index 0.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_shnum is called without an argument, the number of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab sections is shown. If called with the value argument, the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab number of sections is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing e_shnum and/or the sh_size field of the first\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab section header does not change the size of the actual section\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab header array in the file.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_E_SHSTRNDX " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the section table index of the entry that is\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab associated with the section name string table. This information\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab is found in the e_shstrndx field of the ELF header, or in the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab sh_link field of the first section header in the case of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab extended section indexes. If the file has no section name\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab string table, this member holds the value SHN_UNDEF.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If the section name string table section index is greater\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab than or equal to SHN_LORESERVE (0xff00), e_shstrndx has the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab value SHN_XINDEX (0xffff) and the actual index of the section\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab name string table section is contained in the sh_link field of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the section header at index 0.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:e_shstrndx is called without an argument, the index of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the section name string table is shown. If called with the value\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab argument, the ELF header is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: The e_shstrndx field of the ELF header must reference\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab a string table section. Otherwise, diagnostic tools will be\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab confused by the resulting object.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_EI_MAG0 " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the first byte of the object's \"magic number\".\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab The magic number is the first 4 bytes of the object file, and is\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab used to identify it as being an ELF object. This information\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab is found in the e_ident[EI_MAG0] field of the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:ei_mag0 is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_ident[EI_MAG0] is shown. If called with the value argument,\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the e_ident[EI_MAG0] field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the e_ident[EI_MAG0] field of the ELF header\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab to a value other than 0x7f will cause the system to fail to\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab identify it as an ELF object.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_EI_MAG1 " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the second byte of the object's \"magic number\".\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab The magic number is the first 4 bytes of the object file, and is\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab used to identify it as being an ELF object. This information\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab is found in the e_ident[EI_MAG1] field of the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:ei_mag1 is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_ident[EI_MAG1] is shown. If called with the value argument,\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the e_ident[EI_MAG1] field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the e_ident[EI_MAG1] field of the ELF header\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab to a value other than 0x45 ('E') will cause the system to\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab fail to identify it as an ELF object.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_EI_MAG2 " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the third byte of the object's \"magic number\".\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab The magic number is the first 4 bytes of the object file, and is\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab used to identify it as being an ELF object. This information\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab is found in the e_ident[EI_MAG2] field of the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:ei_mag2 is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_ident[EI_MAG2] is shown. If called with the value argument,\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the e_ident[EI_MAG2] field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the e_ident[EI_MAG2] field of the ELF header\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab to a value other than 0x4c ('L') will cause the system to\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab fail to identify it as an ELF object.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_EI_MAG3 " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the fourth byte of the object's \"magic number\".\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab The magic number is the first 4 bytes of the object file, and is\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab used to identify it as being an ELF object. This information\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab is found in the e_ident[EI_MAG3] field of the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:ei_mag3 is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_ident[EI_MAG3] is shown. If called with the value argument,\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_ident[EI_MAG3] field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the e_ident[EI_MAG3] field of the ELF header\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab to a value other than 0x46 ('F') will cause the system to\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab fail to identify it as an ELF object.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_EI_CLASS " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the file's class (system word size). This\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab information is found in the e_ident[EI_CLASS] field of the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:ei_class is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_ident[EI_CLASS] is shown. If called with the value argument,\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the e_ident[EI_CLASS] field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the e_ident[EI_CLASS] field of the ELF header\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab does not alter the contents of the file, and is therefore\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab likely to render the file unusable.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_EI_DATA " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the file's data encoding (byte order). This\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab information is found in the e_ident[EI_DATA] field of the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:ei_data is called without an argument, the value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_ident[EI_DATA] is shown. If called with the value argument,\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the e_ident[EI_DATA] field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the e_ident[EI_DATA] field of the ELF header\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab does not alter the contents of the file or the byte order\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab of the data, and is therefore likely to render the file unusable.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_EI_VERSION " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the object file version. This information\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab is found in the e_ident[EI_VERSION] field of the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:ei_version is called without an argument, the value\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab of e_ident[EI_VERSION] is shown. If called with the value\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab argument, the e_ident[EI_VERSION] field is updated with the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: The e_version element of the ELF header also contains\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab a version value. These two fields should be set to the same\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab value. Use the ehdr:e_version command to change that element.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_EI_OSABI " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the operating system / ABI identification for\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the object. This information is kept in the e_ident[EI_OSABI]\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab field of the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:ei_osabi is called without arguments, current value of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab e_ident[EI_OSABI] is shown. If called with the value argument,\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the e_ident[EI_OSABI] field is updated with the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: Changing the e_ident[EI_OSABI] field of the ELF header\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab does not alter the contents of the file, or cause the actual\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab ABI to be altered. Setting an incompatible ABI value is likely\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab to cause the object to become unusable.\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_HELP_EI_ABIVERSION " \
d29b2c4438482eb00488be49a1f5d6835f455546ab Examine or modify the ABI version for the object. This\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab information is kept in the e_ident[EI_ABIVERSION] field of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the ELF header.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab If ehdr:ei_abiversion is called without arguments, the current\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab value of e_ident[EI_ABIVERSION] is shown. If called with the\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab value argument, the e_ident[EI_ABIVERSION] field is updated with\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the new value.\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab \n\
d29b2c4438482eb00488be49a1f5d6835f455546ab Note: The meaning of the e_ident[EI_ABIVERSION] field of\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab the ELF header depends on the value of e_ident[EI_OSABI]\n\
d29b2c4438482eb00488be49a1f5d6835f455546ab (See ehdr:ei_osabi).\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ _END_
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab# Strings
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_EMPTY ""
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_NL "\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_VALUE "value"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_EIDENT_HDR "e_ident:\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_INDEX "index"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_SEC "sec"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_TYPE "type"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_VERSION "version"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_OFFSET "offset"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_FLAGVALUE "flag_value"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_MINUS_SHNDX "-shndx"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_MINUS_SHTYP "-shtyp"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_SH_INFO "sh_info"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_SH_LINK "sh_link"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_STR_SH_SIZE "sh_size"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab# Format strings
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_FMT_BKTSTR "[%s]"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_FMT_BKTINT "[%d]"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_FMT_STRNL "%s\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_FMT_DECNUMNL "%d\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_FMT_HEXNUM "%#x"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_FMT_HEXNUMNL "%#x\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_FMT_HEXNUM_QCHR "%#x ('%c')"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_FMT_EI_ELT " %-18s%s\n"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab# The following strings represent reserved words, files, pathnames and symbols.
d29b2c4438482eb00488be49a1f5d6835f455546ab# Reference to this strings is via the MSG_ORIG() macro, and thus no message
d29b2c4438482eb00488be49a1f5d6835f455546ab# translation is required.
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab# Module name
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_MOD_NAME "ehdr"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab# Command names
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_DUMP "dump"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_IDENT "e_ident"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_TYPE "e_type"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_MACHINE "e_machine"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_VERSION "e_version"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_ENTRY "e_entry"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_PHOFF "e_phoff"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_SHOFF "e_shoff"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_FLAGS "e_flags"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_EHSIZE "e_ehsize"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_PHENTSIZE "e_phentsize"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_PHNUM "e_phnum"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_SHENTSIZE "e_shentsize"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_SHNUM "e_shnum"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_E_SHSTRNDX "e_shstrndx"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_EI_MAG0 "ei_mag0"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_EI_MAG1 "ei_mag1"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_EI_MAG2 "ei_mag2"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_EI_MAG3 "ei_mag3"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_EI_CLASS "ei_class"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_EI_DATA "ei_data"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_EI_VERSION "ei_version"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_EI_OSABI "ei_osabi"
d29b2c4438482eb00488be49a1f5d6835f455546ab@ MSG_CMD_EI_ABIVERSION "ei_abiversion"