elfconst.c revision ba2be53024c0b999e74ba9adcd7d80fec5df8c57
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/*
cce0e03bb2d07f0fe27cabb93acae9c23655859fab * Copyright 2008 Sun Microsystems, Inc. All rights reserved.
d29b2c4438482eb00488be49a1f5d6835f455546ab * Use is subject to license terms.
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546ab#pragma ident "%Z%%M% %I% %E% SMI"
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <stdlib.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <stdio.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <unistd.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <libintl.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <libelf.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <sys/machelf.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <link.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <strings.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <ctype.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <elfedit.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <_elfedit.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <sys/elf_SPARC.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <sys/elf_amd64.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <sys/auxv_386.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <sys/auxv_SPARC.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab#include <msg.h>
99f63845ee65f89a523460ce4b6b0603a06eceb7ab#include <elfcap.h>
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * This file contains support for mapping well known ELF constants
d29b2c4438482eb00488be49a1f5d6835f455546ab * to their numeric values. It is a layer on top of the elfedit_atoui()
d29b2c4438482eb00488be49a1f5d6835f455546ab * routines defined in util.c. The idea is that centralizing all the
d29b2c4438482eb00488be49a1f5d6835f455546ab * support for such constants will improve consistency between modules,
d29b2c4438482eb00488be49a1f5d6835f455546ab * allow for sharing of commonly needed items, and make the modules
d29b2c4438482eb00488be49a1f5d6835f455546ab * simpler.
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * elfedit output style, with and without leading -o
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_outstyle[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_DEFAULT), ELFEDIT_OUTSTYLE_DEFAULT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_SIMPLE), ELFEDIT_OUTSTYLE_SIMPLE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_NUM), ELFEDIT_OUTSTYLE_NUM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_minus_o_outstyle[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_MINUS_O_DEFAULT), ELFEDIT_OUTSTYLE_DEFAULT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_MINUS_O_SIMPLE), ELFEDIT_OUTSTYLE_SIMPLE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_MINUS_O_NUM), ELFEDIT_OUTSTYLE_NUM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * Booleans
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_bool[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_T), 1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_F), 0 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_TRUE), 1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_FALSE), 0 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_ON), 1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_OFF), 0 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_YES), 1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_NO), 0 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_Y), 1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STR_N), 0 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF section indexes with support for the special index names.
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_shn[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_UNDEF), SHN_UNDEF },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_UNDEF_ALT1), SHN_UNDEF },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_SUNW_IGNORE), SHN_SUNW_IGNORE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_SUNW_IGNORE_ALT1), SHN_SUNW_IGNORE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_BEFORE), SHN_BEFORE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_BEFORE_ALT1), SHN_BEFORE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_AFTER), SHN_AFTER },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_AFTER_ALT1), SHN_AFTER },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_AMD64_LCOMMON), SHN_AMD64_LCOMMON },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_AMD64_LCOMMON_ALT1), SHN_AMD64_LCOMMON },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_ABS), SHN_ABS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_ABS_ALT1), SHN_ABS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_COMMON), SHN_COMMON },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_COMMON_ALT1), SHN_COMMON },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_XINDEX), SHN_XINDEX },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHN_XINDEX_ALT1), SHN_XINDEX },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF section types.
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_sht[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_NULL), SHT_NULL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_NULL_ALT1), SHT_NULL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_PROGBITS), SHT_PROGBITS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_PROGBITS_ALT1), SHT_PROGBITS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SYMTAB), SHT_SYMTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SYMTAB_ALT1), SHT_SYMTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_STRTAB), SHT_STRTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_STRTAB_ALT1), SHT_STRTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_RELA), SHT_RELA },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_RELA_ALT1), SHT_RELA },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_HASH), SHT_HASH },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_HASH_ALT1), SHT_HASH },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_DYNAMIC), SHT_DYNAMIC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_DYNAMIC_ALT1), SHT_DYNAMIC },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_NOTE), SHT_NOTE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_NOTE_ALT1), SHT_NOTE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_NOBITS), SHT_NOBITS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_NOBITS_ALT1), SHT_NOBITS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_REL), SHT_REL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_REL_ALT1), SHT_REL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SHLIB), SHT_SHLIB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SHLIB_ALT1), SHT_SHLIB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_DYNSYM), SHT_DYNSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_DYNSYM_ALT1), SHT_DYNSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_INIT_ARRAY), SHT_INIT_ARRAY },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_INIT_ARRAY_ALT1), SHT_INIT_ARRAY },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_FINI_ARRAY), SHT_FINI_ARRAY },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_FINI_ARRAY_ALT1), SHT_FINI_ARRAY },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_PREINIT_ARRAY), SHT_PREINIT_ARRAY },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_PREINIT_ARRAY_ALT1), SHT_PREINIT_ARRAY },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_GROUP), SHT_GROUP },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_GROUP_ALT1), SHT_GROUP },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SYMTAB_SHNDX), SHT_SYMTAB_SHNDX },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SYMTAB_SHNDX_ALT1), SHT_SYMTAB_SHNDX },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_SYMSORT), SHT_SUNW_symsort },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_SYMSORT_ALT1), SHT_SUNW_symsort },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_TLSSORT), SHT_SUNW_tlssort },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_TLSSORT_ALT1), SHT_SUNW_tlssort },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_LDYNSYM), SHT_SUNW_LDYNSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_LDYNSYM_ALT1), SHT_SUNW_LDYNSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_DOF), SHT_SUNW_dof },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_DOF_ALT1), SHT_SUNW_dof },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_CAP), SHT_SUNW_cap },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_CAP_ALT1), SHT_SUNW_cap },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_SIGNATURE), SHT_SUNW_SIGNATURE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_SIGNATURE_ALT1), SHT_SUNW_SIGNATURE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_ANNOTATE), SHT_SUNW_ANNOTATE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_ANNOTATE_ALT1), SHT_SUNW_ANNOTATE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_DEBUGSTR), SHT_SUNW_DEBUGSTR },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_DEBUGSTR_ALT1), SHT_SUNW_DEBUGSTR },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_DEBUG), SHT_SUNW_DEBUG },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_DEBUG_ALT1), SHT_SUNW_DEBUG },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_MOVE), SHT_SUNW_move },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_MOVE_ALT1), SHT_SUNW_move },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_COMDAT), SHT_SUNW_COMDAT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_COMDAT_ALT1), SHT_SUNW_COMDAT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_SYMINFO), SHT_SUNW_syminfo },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_SYMINFO_ALT1), SHT_SUNW_syminfo },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_VERDEF), SHT_SUNW_verdef },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_VERDEF_ALT1), SHT_SUNW_verdef },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_GNU_VERDEF), SHT_GNU_verdef },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_GNU_VERDEF_ALT1), SHT_GNU_verdef },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_VERNEED), SHT_SUNW_verneed },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_VERNEED_ALT1), SHT_SUNW_verneed },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_GNU_VERNEED), SHT_GNU_verneed },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_GNU_VERNEED_ALT1), SHT_GNU_verneed },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_VERSYM), SHT_SUNW_versym },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_VERSYM_ALT1), SHT_SUNW_versym },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_GNU_VERSYM), SHT_GNU_versym },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_GNU_VERSYM_ALT1), SHT_GNU_versym },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SPARC_GOTDATA), SHT_SPARC_GOTDATA },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SPARC_GOTDATA_ALT1), SHT_SPARC_GOTDATA },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_AMD64_UNWIND), SHT_AMD64_UNWIND },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_AMD64_UNWIND_ALT1), SHT_AMD64_UNWIND },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF section types.
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_sht_strtab[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_STRTAB), SHT_STRTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_STRTAB_ALT1), SHT_STRTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF section types for symbol tables
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_sht_allsymtab[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SYMTAB), SHT_SYMTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SYMTAB_ALT1), SHT_SYMTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_DYNSYM), SHT_DYNSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_DYNSYM_ALT1), SHT_DYNSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_LDYNSYM), SHT_SUNW_LDYNSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_LDYNSYM_ALT1), SHT_SUNW_LDYNSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF section types for SHT_SYMTAB
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_sht_symtab[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SYMTAB), SHT_SYMTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SYMTAB_ALT1), SHT_SYMTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF section types for SHT_SYMTAB
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_sht_dynsym[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_DYNSYM), SHT_DYNSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_DYNSYM_ALT1), SHT_DYNSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF section types for SHT_SUNW_LDYNSYM
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_sht_ldynsym[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_LDYNSYM), SHT_SUNW_LDYNSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHT_SUNW_LDYNSYM_ALT1), SHT_SUNW_LDYNSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF dynamic tag DT_ values
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_dt[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_NULL), DT_NULL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_NULL_ALT1), DT_NULL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_NEEDED), DT_NEEDED },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_NEEDED_ALT1), DT_NEEDED },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PLTRELSZ), DT_PLTRELSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PLTRELSZ_ALT1), DT_PLTRELSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PLTGOT), DT_PLTGOT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PLTGOT_ALT1), DT_PLTGOT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_HASH), DT_HASH },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_HASH_ALT1), DT_HASH },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_STRTAB), DT_STRTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_STRTAB_ALT1), DT_STRTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SYMTAB), DT_SYMTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SYMTAB_ALT1), DT_SYMTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELA), DT_RELA },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELA_ALT1), DT_RELA },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELASZ), DT_RELASZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELASZ_ALT1), DT_RELASZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELAENT), DT_RELAENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELAENT_ALT1), DT_RELAENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_STRSZ), DT_STRSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_STRSZ_ALT1), DT_STRSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SYMENT), DT_SYMENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SYMENT_ALT1), DT_SYMENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_INIT), DT_INIT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_INIT_ALT1), DT_INIT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FINI), DT_FINI },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FINI_ALT1), DT_FINI },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SONAME), DT_SONAME },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SONAME_ALT1), DT_SONAME },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RPATH), DT_RPATH },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RPATH_ALT1), DT_RPATH },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SYMBOLIC), DT_SYMBOLIC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SYMBOLIC_ALT1), DT_SYMBOLIC },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_REL), DT_REL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_REL_ALT1), DT_REL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELSZ), DT_RELSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELSZ_ALT1), DT_RELSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELENT), DT_RELENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELENT_ALT1), DT_RELENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PLTREL), DT_PLTREL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PLTREL_ALT1), DT_PLTREL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_DEBUG), DT_DEBUG },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_DEBUG_ALT1), DT_DEBUG },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_TEXTREL), DT_TEXTREL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_TEXTREL_ALT1), DT_TEXTREL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_JMPREL), DT_JMPREL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_JMPREL_ALT1), DT_JMPREL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_BIND_NOW), DT_BIND_NOW },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_BIND_NOW_ALT1), DT_BIND_NOW },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_INIT_ARRAY), DT_INIT_ARRAY },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_INIT_ARRAY_ALT1), DT_INIT_ARRAY },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FINI_ARRAY), DT_FINI_ARRAY },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FINI_ARRAY_ALT1), DT_FINI_ARRAY },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_INIT_ARRAYSZ), DT_INIT_ARRAYSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_INIT_ARRAYSZ_ALT1), DT_INIT_ARRAYSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FINI_ARRAYSZ), DT_FINI_ARRAYSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FINI_ARRAYSZ_ALT1), DT_FINI_ARRAYSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RUNPATH), DT_RUNPATH },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RUNPATH_ALT1), DT_RUNPATH },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FLAGS), DT_FLAGS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FLAGS_ALT1), DT_FLAGS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PREINIT_ARRAY), DT_PREINIT_ARRAY },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PREINIT_ARRAY_ALT1), DT_PREINIT_ARRAY },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PREINIT_ARRAYSZ), DT_PREINIT_ARRAYSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PREINIT_ARRAYSZ_ALT1), DT_PREINIT_ARRAYSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_AUXILIARY), DT_SUNW_AUXILIARY },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_AUXILIARY_ALT1), DT_SUNW_AUXILIARY },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_RTLDINF), DT_SUNW_RTLDINF },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_RTLDINF_ALT1), DT_SUNW_RTLDINF },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_FILTER), DT_SUNW_FILTER },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_FILTER_ALT1), DT_SUNW_FILTER },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_CAP), DT_SUNW_CAP },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_CAP_ALT1), DT_SUNW_CAP },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_SYMTAB), DT_SUNW_SYMTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_SYMTAB_ALT1), DT_SUNW_SYMTAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_SYMSZ), DT_SUNW_SYMSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_SYMSZ_ALT1), DT_SUNW_SYMSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_SORTENT), DT_SUNW_SORTENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_SORTENT_ALT1), DT_SUNW_SORTENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_SYMSORT), DT_SUNW_SYMSORT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_SYMSORT_ALT1), DT_SUNW_SYMSORT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_SYMSORTSZ), DT_SUNW_SYMSORTSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_SYMSORTSZ_ALT1), DT_SUNW_SYMSORTSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_TLSSORT), DT_SUNW_TLSSORT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_TLSSORT_ALT1), DT_SUNW_TLSSORT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_TLSSORTSZ), DT_SUNW_TLSSORTSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_TLSSORTSZ_ALT1), DT_SUNW_TLSSORTSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_STRPAD), DT_SUNW_STRPAD },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SUNW_STRPAD_ALT1), DT_SUNW_STRPAD },
d29b2c4438482eb00488be49a1f5d6835f455546ab
ba2be53024c0b999e74ba9adcd7d80fec5df8c57ab { MSG_ORIG(MSG_DT_SUNW_LDMACH), DT_SUNW_LDMACH },
ba2be53024c0b999e74ba9adcd7d80fec5df8c57ab { MSG_ORIG(MSG_DT_SUNW_LDMACH_ALT1), DT_SUNW_LDMACH },
ba2be53024c0b999e74ba9adcd7d80fec5df8c57ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SPARC_REGISTER), DT_SPARC_REGISTER },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SPARC_REGISTER_ALT1), DT_SPARC_REGISTER },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_DEPRECATED_SPARC_REGISTER),
d29b2c4438482eb00488be49a1f5d6835f455546ab DT_DEPRECATED_SPARC_REGISTER },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_DEPRECATED_SPARC_REGISTER_ALT1),
d29b2c4438482eb00488be49a1f5d6835f455546ab DT_DEPRECATED_SPARC_REGISTER },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_CHECKSUM), DT_CHECKSUM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_CHECKSUM_ALT1), DT_CHECKSUM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PLTPADSZ), DT_PLTPADSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PLTPADSZ_ALT1), DT_PLTPADSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_MOVEENT), DT_MOVEENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_MOVEENT_ALT1), DT_MOVEENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_MOVESZ), DT_MOVESZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_MOVESZ_ALT1), DT_MOVESZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FEATURE_1), DT_FEATURE_1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FEATURE_1_ALT1), DT_FEATURE_1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_POSFLAG_1), DT_POSFLAG_1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_POSFLAG_1_ALT1), DT_POSFLAG_1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SYMINSZ), DT_SYMINSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SYMINSZ_ALT1), DT_SYMINSZ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SYMINENT), DT_SYMINENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SYMINENT_ALT1), DT_SYMINENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_CONFIG), DT_CONFIG },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_CONFIG_ALT1), DT_CONFIG },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_DEPAUDIT), DT_DEPAUDIT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_DEPAUDIT_ALT1), DT_DEPAUDIT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_AUDIT), DT_AUDIT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_AUDIT_ALT1), DT_AUDIT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PLTPAD), DT_PLTPAD },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_PLTPAD_ALT1), DT_PLTPAD },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_MOVETAB), DT_MOVETAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_MOVETAB_ALT1), DT_MOVETAB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SYMINFO), DT_SYMINFO },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_SYMINFO_ALT1), DT_SYMINFO },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_VERSYM), DT_VERSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_VERSYM_ALT1), DT_VERSYM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELACOUNT), DT_RELACOUNT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELACOUNT_ALT1), DT_RELACOUNT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELCOUNT), DT_RELCOUNT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_RELCOUNT_ALT1), DT_RELCOUNT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FLAGS_1), DT_FLAGS_1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FLAGS_1_ALT1), DT_FLAGS_1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_VERDEF), DT_VERDEF },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_VERDEF_ALT1), DT_VERDEF },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_VERDEFNUM), DT_VERDEFNUM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_VERDEFNUM_ALT1), DT_VERDEFNUM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_VERNEED), DT_VERNEED },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_VERNEED_ALT1), DT_VERNEED },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_VERNEEDNUM), DT_VERNEEDNUM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_VERNEEDNUM_ALT1), DT_VERNEEDNUM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_AUXILIARY), DT_AUXILIARY },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_AUXILIARY_ALT1), DT_AUXILIARY },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_USED), DT_USED },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_USED_ALT1), DT_USED },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FILTER), DT_FILTER },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DT_FILTER_ALT1), DT_FILTER },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF DT_FLAGS DF_* values
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_df[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_ORIGIN), DF_ORIGIN },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_ORIGIN_ALT1), DF_ORIGIN },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_SYMBOLIC), DF_SYMBOLIC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_SYMBOLIC_ALT1), DF_SYMBOLIC },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_TEXTREL), DF_TEXTREL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_TEXTREL_ALT1), DF_TEXTREL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_BIND_NOW), DF_BIND_NOW },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_BIND_NOW_ALT1), DF_BIND_NOW },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_STATIC_TLS), DF_STATIC_TLS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_STATIC_TLS_ALT1), DF_STATIC_TLS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF DT_POSFLAG_1 DF_P1_* values
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_df_p1[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_P1_LAZYLOAD), DF_P1_LAZYLOAD },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_P1_LAZYLOAD_ALT1), DF_P1_LAZYLOAD },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_P1_GROUPPERM), DF_P1_GROUPPERM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_P1_GROUPPERM_ALT1), DF_P1_GROUPPERM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF DT_FLAGS_1 DF_1_* values
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_df_1[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NOW), DF_1_NOW },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NOW_ALT1), DF_1_NOW },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_GLOBAL), DF_1_GLOBAL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_GLOBAL_ALT1), DF_1_GLOBAL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_GROUP), DF_1_GROUP },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_GROUP_ALT1), DF_1_GROUP },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NODELETE), DF_1_NODELETE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NODELETE_ALT1), DF_1_NODELETE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_LOADFLTR), DF_1_LOADFLTR },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_LOADFLTR_ALT1), DF_1_LOADFLTR },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_INITFIRST), DF_1_INITFIRST },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_INITFIRST_ALT1), DF_1_INITFIRST },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NOOPEN), DF_1_NOOPEN },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NOOPEN_ALT1), DF_1_NOOPEN },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_ORIGIN), DF_1_ORIGIN },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_ORIGIN_ALT1), DF_1_ORIGIN },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_DIRECT), DF_1_DIRECT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_DIRECT_ALT1), DF_1_DIRECT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_TRANS), DF_1_TRANS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_TRANS_ALT1), DF_1_TRANS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_INTERPOSE), DF_1_INTERPOSE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_INTERPOSE_ALT1), DF_1_INTERPOSE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NODEFLIB), DF_1_NODEFLIB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NODEFLIB_ALT1), DF_1_NODEFLIB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NODUMP), DF_1_NODUMP },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NODUMP_ALT1), DF_1_NODUMP },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_CONFALT), DF_1_CONFALT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_CONFALT_ALT1), DF_1_CONFALT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_ENDFILTEE), DF_1_ENDFILTEE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_ENDFILTEE_ALT1), DF_1_ENDFILTEE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_DISPRELDNE), DF_1_DISPRELDNE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_DISPRELDNE_ALT1), DF_1_DISPRELDNE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_DISPRELPND), DF_1_DISPRELPND },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_DISPRELPND_ALT1), DF_1_DISPRELPND },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NODIRECT), DF_1_NODIRECT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NODIRECT_ALT1), DF_1_NODIRECT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_IGNMULDEF), DF_1_IGNMULDEF },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_IGNMULDEF_ALT1), DF_1_IGNMULDEF },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NOKSYMS), DF_1_NOKSYMS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NOKSYMS_ALT1), DF_1_NOKSYMS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NOHDR), DF_1_NOHDR },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NOHDR_ALT1), DF_1_NOHDR },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_EDITED), DF_1_EDITED },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_EDITED_ALT1), DF_1_EDITED },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NORELOC), DF_1_NORELOC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_NORELOC_ALT1), DF_1_NORELOC },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_SYMINTPOSE), DF_1_SYMINTPOSE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_SYMINTPOSE_ALT1), DF_1_SYMINTPOSE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_GLOBAUDIT), DF_1_GLOBAUDIT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DF_1_GLOBAUDIT_ALT1), DF_1_GLOBAUDIT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF DT_FEATURE_1 DTF_1_* values
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_dtf_1[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DTF_1_PARINIT), DTF_1_PARINIT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DTF_1_PARINIT_ALT1), DTF_1_PARINIT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DTF_1_CONFEXP), DTF_1_CONFEXP },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_DTF_1_CONFEXP_ALT1), DTF_1_CONFEXP },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF header EI_* indexes
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_ei[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_MAG0), EI_MAG0 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_MAG0_ALT1), EI_MAG0 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_MAG1), EI_MAG1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_MAG1_ALT1), EI_MAG1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_MAG2), EI_MAG2 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_MAG2_ALT1), EI_MAG2 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_MAG3), EI_MAG3 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_MAG3_ALT1), EI_MAG3 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_CLASS), EI_CLASS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_CLASS_ALT1), EI_CLASS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_DATA), EI_DATA },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_DATA_ALT1), EI_DATA },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_VERSION), EI_VERSION },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_VERSION_ALT1), EI_VERSION },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_OSABI), EI_OSABI },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_OSABI_ALT1), EI_OSABI },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_ABIVERSION), EI_ABIVERSION },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EI_ABIVERSION_ALT1), EI_ABIVERSION },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF header ET_* file type values
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_et[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ET_NONE), ET_NONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ET_NONE_ALT1), ET_NONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ET_REL), ET_REL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ET_REL_ALT1), ET_REL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ET_EXEC), ET_EXEC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ET_EXEC_ALT1), ET_EXEC },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ET_DYN), ET_DYN },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ET_DYN_ALT1), ET_DYN },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ET_CORE), ET_CORE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ET_CORE_ALT1), ET_CORE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELFCLASS
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_elfclass[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFCLASSNONE), ELFCLASSNONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFCLASSNONE_ALT1), ELFCLASSNONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFCLASS32), ELFCLASS32 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFCLASS32_ALT1), ELFCLASS32 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFCLASS64), ELFCLASS64 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFCLASS64_ALT1), ELFCLASS64 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELFDATA
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_elfdata[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFDATANONE), ELFDATANONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFDATANONE_ALT1), ELFDATANONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFDATA2LSB), ELFDATA2LSB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFDATA2LSB_ALT1), ELFDATA2LSB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFDATA2MSB), ELFDATA2MSB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFDATA2MSB_ALT1), ELFDATA2MSB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF header EF_* flags
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_ef[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARC_32PLUS), EF_SPARC_32PLUS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARC_32PLUS_ALT1), EF_SPARC_32PLUS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARC_SUN_US1), EF_SPARC_SUN_US1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARC_SUN_US1_ALT1), EF_SPARC_SUN_US1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARC_HAL_R1), EF_SPARC_HAL_R1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARC_HAL_R1_ALT1), EF_SPARC_HAL_R1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARC_SUN_US3), EF_SPARC_SUN_US3 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARC_SUN_US3_ALT1), EF_SPARC_SUN_US3 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARCV9_MM), EF_SPARCV9_MM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARCV9_MM_ALT1), EF_SPARCV9_MM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARCV9_TSO), EF_SPARCV9_TSO },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARCV9_TSO_ALT1), EF_SPARCV9_TSO },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARCV9_PSO), EF_SPARCV9_PSO },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARCV9_PSO_ALT1), EF_SPARCV9_PSO },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARCV9_RMO), EF_SPARCV9_RMO },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EF_SPARCV9_RMO_ALT1), EF_SPARCV9_RMO },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF header EV_* versions
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_ev[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EV_NONE), EV_NONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EV_NONE_ALT1), EV_NONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EV_CURRENT), EV_CURRENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EV_CURRENT_ALT1), EV_CURRENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF EM_* machine types
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_em[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_NONE), EM_NONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_NONE_ALT1), EM_NONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_M32), EM_M32 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_M32_ALT1), EM_M32 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_M32_ALT2), EM_M32 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_SPARC), EM_SPARC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_SPARC_ALT1), EM_SPARC },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_386), EM_386 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_386_ALT1), EM_386 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_386_ALT2), EM_386 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_68K), EM_68K },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_68K_ALT1), EM_68K },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_68K_ALT2), EM_68K },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_88K), EM_88K },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_88K_ALT1), EM_88K },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_88K_ALT2), EM_88K },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_486), EM_486 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_486_ALT1), EM_486 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_486_ALT2), EM_486 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_860), EM_860 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_860_ALT1), EM_860 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_860_ALT2), EM_860 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MIPS), EM_MIPS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MIPS_ALT1), EM_MIPS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MIPS_ALT2), EM_MIPS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_S370), EM_S370 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_S370_ALT1), EM_S370 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MIPS_RS3_LE), EM_MIPS_RS3_LE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MIPS_RS3_LE_ALT1), EM_MIPS_RS3_LE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MIPS_RS3_LE_ALT2), EM_MIPS_RS3_LE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_RS6000), EM_RS6000 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_RS6000_ALT1), EM_RS6000 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PA_RISC), EM_PA_RISC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PA_RISC_ALT1), EM_PA_RISC },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_NCUBE), EM_nCUBE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_NCUBE_ALT1), EM_nCUBE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_VPP500), EM_VPP500 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_VPP500_ALT1), EM_VPP500 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_SPARC32PLUS), EM_SPARC32PLUS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_SPARC32PLUS_ALT1), EM_SPARC32PLUS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_960), EM_960 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_960_ALT1), EM_960 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PPC), EM_PPC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PPC_ALT1), EM_PPC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PPC_ALT2), EM_PPC },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PPC64), EM_PPC64 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PPC64_ALT1), EM_PPC64 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PPC64_ALT2), EM_PPC64 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_S390), EM_S390 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_S390_ALT1), EM_S390 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_V800), EM_V800 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_V800_ALT1), EM_V800 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_FR20), EM_FR20 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_FR20_ALT1), EM_FR20 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_RH32), EM_RH32 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_RH32_ALT1), EM_RH32 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_RCE), EM_RCE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_RCE_ALT1), EM_RCE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ARM), EM_ARM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ARM_ALT1), EM_ARM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ALPHA), EM_ALPHA },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ALPHA_ALT1), EM_ALPHA },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_SH), EM_SH },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_SH_ALT1), EM_SH },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_SPARCV9), EM_SPARCV9 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_SPARCV9_ALT1), EM_SPARCV9 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_TRICORE), EM_TRICORE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_TRICORE_ALT1), EM_TRICORE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ARC), EM_ARC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ARC_ALT1), EM_ARC },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_H8_300), EM_H8_300 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_H8_300_ALT1), EM_H8_300 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_H8_300H), EM_H8_300H },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_H8_300H_ALT1), EM_H8_300H },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_H8S), EM_H8S },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_H8S_ALT1), EM_H8S },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_H8_500), EM_H8_500 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_H8_500_ALT1), EM_H8_500 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_IA_64), EM_IA_64 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_IA_64_ALT1), EM_IA_64 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MIPS_X), EM_MIPS_X },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MIPS_X_ALT1), EM_MIPS_X },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_COLDFIRE), EM_COLDFIRE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_COLDFIRE_ALT1), EM_COLDFIRE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_68HC12), EM_68HC12 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_68HC12_ALT1), EM_68HC12 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MMA), EM_MMA },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MMA_ALT1), EM_MMA },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PCP), EM_PCP },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PCP_ALT1), EM_PCP },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_NCPU), EM_NCPU },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_NCPU_ALT1), EM_NCPU },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_NDR1), EM_NDR1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_NDR1_ALT1), EM_NDR1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_STARCORE), EM_STARCORE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_STARCORE_ALT1), EM_STARCORE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ME16), EM_ME16 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ME16_ALT1), EM_ME16 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ST100), EM_ST100 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ST100_ALT1), EM_ST100 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_TINYJ), EM_TINYJ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_TINYJ_ALT1), EM_TINYJ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_AMD64), EM_AMD64 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_AMD64_ALT1), EM_AMD64 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PDSP), EM_PDSP },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PDSP_ALT1), EM_PDSP },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_FX66), EM_FX66 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_FX66_ALT1), EM_FX66 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ST9PLUS), EM_ST9PLUS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ST9PLUS_ALT1), EM_ST9PLUS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ST7), EM_ST7 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ST7_ALT1), EM_ST7 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_68HC16), EM_68HC16 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_68HC16_ALT1), EM_68HC16 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_68HC11), EM_68HC11 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_68HC11_ALT1), EM_68HC11 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_68HC08), EM_68HC08 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_68HC08_ALT1), EM_68HC08 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_68HC05), EM_68HC05 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_68HC05_ALT1), EM_68HC05 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_SVX), EM_SVX },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_SVX_ALT1), EM_SVX },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ST19), EM_ST19 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ST19_ALT1), EM_ST19 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_VAX), EM_VAX },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_VAX_ALT1), EM_VAX },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_CRIS), EM_CRIS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_CRIS_ALT1), EM_CRIS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_JAVELIN), EM_JAVELIN },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_JAVELIN_ALT1), EM_JAVELIN },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_FIREPATH), EM_FIREPATH },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_FIREPATH_ALT1), EM_FIREPATH },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ZSP), EM_ZSP },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ZSP_ALT1), EM_ZSP },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MMIX), EM_MMIX },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MMIX_ALT1), EM_MMIX },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_HUANY), EM_HUANY },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_HUANY_ALT1), EM_HUANY },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PRISM), EM_PRISM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PRISM_ALT1), EM_PRISM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_AVR), EM_AVR },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_AVR_ALT1), EM_AVR },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_FR30), EM_FR30 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_FR30_ALT1), EM_FR30 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_D10V), EM_D10V },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_D10V_ALT1), EM_D10V },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_D30V), EM_D30V },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_D30V_ALT1), EM_D30V },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_V850), EM_V850 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_V850_ALT1), EM_V850 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_M32R), EM_M32R },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_M32R_ALT1), EM_M32R },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MN10300), EM_MN10300 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MN10300_ALT1), EM_MN10300 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MN10200), EM_MN10200 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_MN10200_ALT1), EM_MN10200 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PJ), EM_PJ },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_PJ_ALT1), EM_PJ },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_OPENRISC), EM_OPENRISC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_OPENRISC_ALT1), EM_OPENRISC },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ARC_A5), EM_ARC_A5 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_ARC_A5_ALT1), EM_ARC_A5 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_XTENSA), EM_XTENSA },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_EM_XTENSA_ALT1), EM_XTENSA },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab#if (EM_NUM != (EM_XTENSA + 1))
d29b2c4438482eb00488be49a1f5d6835f455546ab#error "EM_NUM has grown"
d29b2c4438482eb00488be49a1f5d6835f455546ab#endif
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF header ELFOSABI_* values (and common aliases)
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_elfosabi[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_NONE), ELFOSABI_NONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_NONE_ALT1), ELFOSABI_NONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_SYSV), ELFOSABI_SYSV },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_SYSV_ALT1), ELFOSABI_SYSV },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_HPUX), ELFOSABI_HPUX },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_HPUX_ALT1), ELFOSABI_HPUX },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_NETBSD), ELFOSABI_NETBSD },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_NETBSD_ALT1), ELFOSABI_NETBSD },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_LINUX), ELFOSABI_LINUX },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_LINUX_ALT1), ELFOSABI_LINUX },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_SOLARIS), ELFOSABI_SOLARIS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_SOLARIS_ALT1), ELFOSABI_SOLARIS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_AIX), ELFOSABI_AIX },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_AIX_ALT1), ELFOSABI_AIX },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_IRIX), ELFOSABI_IRIX },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_IRIX_ALT1), ELFOSABI_IRIX },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_FREEBSD), ELFOSABI_FREEBSD },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_FREEBSD_ALT1), ELFOSABI_FREEBSD },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_TRU64), ELFOSABI_TRU64 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_TRU64_ALT1), ELFOSABI_TRU64 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_MODESTO), ELFOSABI_MODESTO },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_MODESTO_ALT1), ELFOSABI_MODESTO },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_OPENBSD), ELFOSABI_OPENBSD },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_OPENBSD_ALT1), ELFOSABI_OPENBSD },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_OPENVMS), ELFOSABI_OPENVMS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_OPENVMS_ALT1), ELFOSABI_OPENVMS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_NSK), ELFOSABI_NSK },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_NSK_ALT1), ELFOSABI_NSK },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_AROS), ELFOSABI_AROS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_AROS_ALT1), ELFOSABI_AROS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_ARM), ELFOSABI_ARM },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_ARM_ALT1), ELFOSABI_ARM },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_STANDALONE), ELFOSABI_STANDALONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_ELFOSABI_STANDALONE_ALT1), ELFOSABI_STANDALONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * Program header PT_* type values
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_pt[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_NULL), PT_NULL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_NULL_ALT1), PT_NULL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_LOAD), PT_LOAD },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_LOAD_ALT1), PT_LOAD },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_DYNAMIC), PT_DYNAMIC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_DYNAMIC_ALT1), PT_DYNAMIC },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_INTERP), PT_INTERP },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_INTERP_ALT1), PT_INTERP },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_NOTE), PT_NOTE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_NOTE_ALT1), PT_NOTE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_SHLIB), PT_SHLIB },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_SHLIB_ALT1), PT_SHLIB },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_PHDR), PT_PHDR },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_PHDR_ALT1), PT_PHDR },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_TLS), PT_TLS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_TLS_ALT1), PT_TLS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_SUNW_UNWIND), PT_SUNW_UNWIND },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_SUNW_UNWIND_ALT1), PT_SUNW_UNWIND },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_SUNWBSS), PT_SUNWBSS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_SUNWBSS_ALT1), PT_SUNWBSS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_SUNWSTACK), PT_SUNWSTACK },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_SUNWSTACK_ALT1), PT_SUNWSTACK },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_SUNWDTRACE), PT_SUNWDTRACE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_SUNWDTRACE_ALT1), PT_SUNWDTRACE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_SUNWCAP), PT_SUNWCAP },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PT_SUNWCAP_ALT1), PT_SUNWCAP },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * Program header PF_* flag values
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_pf[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PF_X), PF_X },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PF_X_ALT1), PF_X },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PF_W), PF_W },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PF_W_ALT1), PF_W },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PF_R), PF_R },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_PF_R_ALT1), PF_R },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * Section header SHF_* flag values
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_shf[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_WRITE), SHF_WRITE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_WRITE_ALT1), SHF_WRITE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_ALLOC), SHF_ALLOC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_ALLOC_ALT1), SHF_ALLOC },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_EXECINSTR), SHF_EXECINSTR },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_EXECINSTR_ALT1), SHF_EXECINSTR },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_MERGE), SHF_MERGE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_MERGE_ALT1), SHF_MERGE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_STRINGS), SHF_STRINGS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_STRINGS_ALT1), SHF_STRINGS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_INFO_LINK), SHF_INFO_LINK },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_INFO_LINK_ALT1), SHF_INFO_LINK },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_LINK_ORDER), SHF_LINK_ORDER },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_LINK_ORDER_ALT1), SHF_LINK_ORDER },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_OS_NONCONFORMING), SHF_OS_NONCONFORMING },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_OS_NONCONFORMING_ALT1), SHF_OS_NONCONFORMING },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_GROUP), SHF_GROUP },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_GROUP_ALT1), SHF_GROUP },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_TLS), SHF_TLS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SHF_TLS_ALT1), SHF_TLS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
cce0e03bb2d07f0fe27cabb93acae9c23655859fab { MSG_ORIG(MSG_SHF_AMD64_LARGE), SHF_AMD64_LARGE },
cce0e03bb2d07f0fe27cabb93acae9c23655859fab { MSG_ORIG(MSG_SHF_AMD64_LARGE_ALT1), SHF_AMD64_LARGE },
cce0e03bb2d07f0fe27cabb93acae9c23655859fab
cce0e03bb2d07f0fe27cabb93acae9c23655859fab { MSG_ORIG(MSG_SHF_ORDERED), SHF_ORDERED },
cce0e03bb2d07f0fe27cabb93acae9c23655859fab { MSG_ORIG(MSG_SHF_ORDERED_ALT1), SHF_ORDERED },
cce0e03bb2d07f0fe27cabb93acae9c23655859fab
cce0e03bb2d07f0fe27cabb93acae9c23655859fab { MSG_ORIG(MSG_SHF_EXCLUDE), SHF_EXCLUDE },
cce0e03bb2d07f0fe27cabb93acae9c23655859fab { MSG_ORIG(MSG_SHF_EXCLUDE_ALT1), SHF_EXCLUDE },
cce0e03bb2d07f0fe27cabb93acae9c23655859fab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF symbol bindings (st_info ELF_ST_BIND)
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_stb[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STB_LOCAL), STB_LOCAL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STB_LOCAL_ALT1), STB_LOCAL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STB_GLOBAL), STB_GLOBAL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STB_GLOBAL_ALT1), STB_GLOBAL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STB_WEAK), STB_WEAK },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STB_WEAK_ALT1), STB_WEAK },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF symbol types (st_info ELF_ST_TYPE)
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_stt[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_NOTYPE), STT_NOTYPE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_NOTYPE_ALT1), STT_NOTYPE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_OBJECT), STT_OBJECT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_OBJECT_ALT1), STT_OBJECT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_FUNC), STT_FUNC },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_FUNC_ALT1), STT_FUNC },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_SECTION), STT_SECTION },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_SECTION_ALT1), STT_SECTION },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_FILE), STT_FILE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_FILE_ALT1), STT_FILE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_COMMON), STT_COMMON },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_COMMON_ALT1), STT_COMMON },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_TLS), STT_TLS },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STT_TLS_ALT1), STT_TLS },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF symbol visibility (st_other ELF_ST_VISIBILITY)
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_stv[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STV_DEFAULT), STV_DEFAULT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STV_DEFAULT_ALT1), STV_DEFAULT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STV_INTERNAL), STV_INTERNAL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STV_INTERNAL_ALT1), STV_INTERNAL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STV_HIDDEN), STV_HIDDEN },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STV_HIDDEN_ALT1), STV_HIDDEN },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STV_PROTECTED), STV_PROTECTED },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_STV_PROTECTED_ALT1), STV_PROTECTED },
d29b2c4438482eb00488be49a1f5d6835f455546ab
6075882998740edfaff4dd844974e188f8bd6793rie { MSG_ORIG(MSG_STV_EXPORTED), STV_EXPORTED },
6075882998740edfaff4dd844974e188f8bd6793rie { MSG_ORIG(MSG_STV_EXPORTED_ALT1), STV_EXPORTED },
6075882998740edfaff4dd844974e188f8bd6793rie
6075882998740edfaff4dd844974e188f8bd6793rie { MSG_ORIG(MSG_STV_SINGLETON), STV_SINGLETON },
6075882998740edfaff4dd844974e188f8bd6793rie { MSG_ORIG(MSG_STV_SINGLETON_ALT1), STV_SINGLETON },
6075882998740edfaff4dd844974e188f8bd6793rie
6075882998740edfaff4dd844974e188f8bd6793rie { MSG_ORIG(MSG_STV_ELIMINATE), STV_ELIMINATE },
6075882998740edfaff4dd844974e188f8bd6793rie { MSG_ORIG(MSG_STV_ELIMINATE_ALT1), STV_ELIMINATE },
6075882998740edfaff4dd844974e188f8bd6793rie
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF syminfo SYMINFO_BT_ special boundto values
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_syminfo_bt[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_BT_SELF), SYMINFO_BT_SELF },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_BT_SELF_ALT1), SYMINFO_BT_SELF },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_BT_PARENT), SYMINFO_BT_PARENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_BT_PARENT_ALT1), SYMINFO_BT_PARENT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_BT_NONE), SYMINFO_BT_NONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_BT_NONE_ALT1), SYMINFO_BT_NONE },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF syminfo SYMINFO_FLG_ flags
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_syminfo_flg[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_FLG_DIRECT), SYMINFO_FLG_DIRECT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_FLG_DIRECT_ALT1), SYMINFO_FLG_DIRECT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_FLG_COPY), SYMINFO_FLG_COPY },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_FLG_COPY_ALT1), SYMINFO_FLG_COPY },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_FLG_LAZYLOAD), SYMINFO_FLG_LAZYLOAD },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_FLG_LAZYLOAD_ALT1), SYMINFO_FLG_LAZYLOAD },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_FLG_DIRECTBIND), SYMINFO_FLG_DIRECTBIND },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_FLG_DIRECTBIND_ALT1), SYMINFO_FLG_DIRECTBIND },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_FLG_NOEXTDIRECT), SYMINFO_FLG_NOEXTDIRECT },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_SYMINFO_FLG_NOEXTDIRECT_ALT1), SYMINFO_FLG_NOEXTDIRECT },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * ELF capabilities tag CA_ values
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t sym_ca[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_CA_SUNW_NULL), CA_SUNW_NULL },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_CA_SUNW_NULL_ALT1), CA_SUNW_NULL },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_CA_SUNW_HW_1), CA_SUNW_HW_1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_CA_SUNW_HW_1_ALT1), CA_SUNW_HW_1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_CA_SUNW_SF_1), CA_SUNW_SF_1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab { MSG_ORIG(MSG_CA_SUNW_SF_1_ALT1), CA_SUNW_SF_1 },
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab { NULL }
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
99f63845ee65f89a523460ce4b6b0603a06eceb7ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * AV_386 flags used for CA_SUNW_HW_1 capabilities
99f63845ee65f89a523460ce4b6b0603a06eceb7ab *
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * The space for this is reserved at compile time, but the values are
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * filled in at runtime on demand from the usr/src/common/elfcap code.
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * Note that we need two slots for every capability, one for the full
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * string, and another for the informal lowercase version.
d29b2c4438482eb00488be49a1f5d6835f455546ab */
99f63845ee65f89a523460ce4b6b0603a06eceb7abstatic elfedit_atoui_sym_t sym_av_386[(2 * ELFCAP_NUM_HW1_386) + 1];
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * AV_SPARC flags used for CA_SUNW_HW_1 capabilities
99f63845ee65f89a523460ce4b6b0603a06eceb7ab *
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * The space for this is reserved at compile time, but the values are
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * filled in at runtime on demand from the usr/src/common/elfcap code.
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * Note that we need two slots for every capability, one for the full
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * string, and another for the informal lowercase version.
d29b2c4438482eb00488be49a1f5d6835f455546ab */
99f63845ee65f89a523460ce4b6b0603a06eceb7abstatic elfedit_atoui_sym_t sym_av_sparc[(2 * ELFCAP_NUM_HW1_SPARC) + 1];
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * SF1_SUNW flags used for CA_SUNW_SF_1 capabilities
99f63845ee65f89a523460ce4b6b0603a06eceb7ab *
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * The space for this is reserved at compile time, but the values are
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * filled in at runtime on demand from the usr/src/common/elfcap code.
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * Note that we need two slots for every capability, one for the full
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * string, and another for the informal lowercase version.
d29b2c4438482eb00488be49a1f5d6835f455546ab */
99f63845ee65f89a523460ce4b6b0603a06eceb7abstatic elfedit_atoui_sym_t sym_sf1_sunw[(2 * ELFCAP_NUM_SF1) + 1];
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * Array of pointers to atoui arrays for each constant type, indexed
d29b2c4438482eb00488be49a1f5d6835f455546ab * by elfedit_const_t value. The number and order of entries in this
d29b2c4438482eb00488be49a1f5d6835f455546ab * table must agree with the definition of elfedit_const_t in elfedit.h.
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abstatic elfedit_atoui_sym_t *sym_table[] = {
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_outstyle, /* 0: ELFEDIT_CONST_OUTSTYLE */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_minus_o_outstyle, /* 1: ELFEDIT_CONST_OUTSTYLE_MO */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_bool, /* 2: ELFEDIT_CONST_BOOL */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_shn, /* 3: ELFEDIT_CONST_SHN */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_sht, /* 4: ELFEDIT_CONST_SHT */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_sht_strtab, /* 5: ELFEDIT_CONST_SHT_STRTAB */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_sht_allsymtab, /* 6: ELFEDIT_CONST_SHT_ALLSYMTAB */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_sht_symtab, /* 7: ELFEDIT_CONST_SHT_SYMTAB */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_sht_dynsym, /* 8: ELFEDIT_CONST_SHT_DYNSYM */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_sht_ldynsym, /* 9: ELFEDIT_CONST_SHT_LDYNSYM */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_dt, /* 10: ELFEDIT_CONST_DT: Dynamic tags */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_df, /* 11: ELFEDIT_CONST_DF: DT_FLAGS */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_df_p1, /* 12: ELFEDIT_CONST_DF_P1: DF_POSFLAG_1 */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_df_1, /* 13: ELFEDIT_CONST_DF_1: DT_FLAGS_1 */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_dtf_1, /* 14: ELFEDIT_CONST_DTF_1: DT_FEATURE_1 */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_ei, /* 15: ELFEDIT_CONST_EI: Ehdr e_ident indexes */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_et, /* 16: ELFEDIT_CONST_ET: Ehdr obj type */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_elfclass, /* 17: ELFEDIT_CONST_ELFCLASS: Ehdr class */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_elfdata, /* 18: ELFEDIT_CONST_ELFDATA: Ehdr endian */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_ef, /* 19: ELFEDIT_CONST_EF: Ehdr flags */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_ev, /* 20: ELFEDIT_CONST_EV: Ehdr version */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_em, /* 21: ELFEDIT_CONST_EM: Ehdr machine */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_elfosabi, /* 22: ELFEDIT_CONST_ELFOSABI: Ehdr ABI */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_pt, /* 23: ELFEDIT_CONST_PT: Phdr type */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_pf, /* 24: ELFEDIT_CONST_PF: Phdr flags */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_shf, /* 25: ELFEDIT_CONST_SHF: Shdr flags */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_stb, /* 26: ELFEDIT_CONST_STB: Sym binding */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_stt, /* 27: ELFEDIT_CONST_STT: Sym type */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_stv, /* 28: ELFEDIT_CONST_STV: Sym visibility */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_syminfo_bt, /* 29: ELFEDIT_CONST_SYMINFO_BT:Syminfo bndto */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_syminfo_flg, /* 30: ELFEDIT_CONST_SYMINFO_FLG:Syminfo flag */
d29b2c4438482eb00488be49a1f5d6835f455546ab sym_ca, /* 31: ELFEDIT_CONST_CA: Capabilities tags */
99f63845ee65f89a523460ce4b6b0603a06eceb7ab NULL, /* 32: ELFEDIT_CONST_AV_386: X86 HW caps */
99f63845ee65f89a523460ce4b6b0603a06eceb7ab NULL, /* 33: ELFEDIT_CONST_AV_SPARC: sparc HW caps */
99f63845ee65f89a523460ce4b6b0603a06eceb7ab NULL, /* 34: ELFEDIT_CONST_SF1_SUNW: software caps */
d29b2c4438482eb00488be49a1f5d6835f455546ab};
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
99f63845ee65f89a523460ce4b6b0603a06eceb7ab/*
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * Fill in the specified hardware/software capability array
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * with data from usr/src/common/elfcap.
99f63845ee65f89a523460ce4b6b0603a06eceb7ab *
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * entry:
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * const_type - Index of constant item being filled
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * arr - elfedit_atoui_sym_t array to be filled
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * desc - Array of capability descriptors from elfcap
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * cnt - # of capability descriptors.
99f63845ee65f89a523460ce4b6b0603a06eceb7ab *
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * exit:
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * arr is expected to have [(2 * cnt) + 1] elements, all zero filled.
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * For each descriptor, 2 array elements are filled in. The first one
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * has the full name, and the second has the lowecase informal version.
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * The final element of arr is left as NULL, to serve as termination.
99f63845ee65f89a523460ce4b6b0603a06eceb7ab */
99f63845ee65f89a523460ce4b6b0603a06eceb7abstatic void
99f63845ee65f89a523460ce4b6b0603a06eceb7abfill_capability_array(elfedit_const_t const_type,
99f63845ee65f89a523460ce4b6b0603a06eceb7ab elfedit_atoui_sym_t *arr, const elfcap_desc_t *desc, size_t cnt)
99f63845ee65f89a523460ce4b6b0603a06eceb7ab{
99f63845ee65f89a523460ce4b6b0603a06eceb7ab sym_table[const_type] = arr;
99f63845ee65f89a523460ce4b6b0603a06eceb7ab
99f63845ee65f89a523460ce4b6b0603a06eceb7ab for (; cnt-- > 0; desc++) {
99f63845ee65f89a523460ce4b6b0603a06eceb7ab /*
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * Ignore "placeholder" items. These represent
99f63845ee65f89a523460ce4b6b0603a06eceb7ab * unallocated holes in the capability bits.
99f63845ee65f89a523460ce4b6b0603a06eceb7ab */
99f63845ee65f89a523460ce4b6b0603a06eceb7ab if (desc->c_val == 0)
99f63845ee65f89a523460ce4b6b0603a06eceb7ab continue;
99f63845ee65f89a523460ce4b6b0603a06eceb7ab
99f63845ee65f89a523460ce4b6b0603a06eceb7ab arr->sym_name = desc->c_full.s_str;
99f63845ee65f89a523460ce4b6b0603a06eceb7ab arr->sym_value = desc->c_val;
99f63845ee65f89a523460ce4b6b0603a06eceb7ab arr++;
99f63845ee65f89a523460ce4b6b0603a06eceb7ab
99f63845ee65f89a523460ce4b6b0603a06eceb7ab arr->sym_name = desc->c_lc.s_str;
99f63845ee65f89a523460ce4b6b0603a06eceb7ab arr->sym_value = desc->c_val;
99f63845ee65f89a523460ce4b6b0603a06eceb7ab arr++;
99f63845ee65f89a523460ce4b6b0603a06eceb7ab }
99f63845ee65f89a523460ce4b6b0603a06eceb7ab
99f63845ee65f89a523460ce4b6b0603a06eceb7ab}
99f63845ee65f89a523460ce4b6b0603a06eceb7ab
99f63845ee65f89a523460ce4b6b0603a06eceb7ab
99f63845ee65f89a523460ce4b6b0603a06eceb7ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * Given an elfedit_const_t value, return the array of elfedit_atoui_sym_t
d29b2c4438482eb00488be49a1f5d6835f455546ab * entries that it represents.
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abelfedit_atoui_sym_t *
d29b2c4438482eb00488be49a1f5d6835f455546abelfedit_const_to_atoui(elfedit_const_t const_type)
d29b2c4438482eb00488be49a1f5d6835f455546ab{
d29b2c4438482eb00488be49a1f5d6835f455546ab if ((const_type < 0) ||
d29b2c4438482eb00488be49a1f5d6835f455546ab (const_type >= (sizeof (sym_table) / sizeof (sym_table[0]))))
d29b2c4438482eb00488be49a1f5d6835f455546ab elfedit_msg(ELFEDIT_MSG_ERR, MSG_INTL(MSG_ERR_BADCONST));
d29b2c4438482eb00488be49a1f5d6835f455546ab
99f63845ee65f89a523460ce4b6b0603a06eceb7ab /* Fill capability constant array on demand? */
99f63845ee65f89a523460ce4b6b0603a06eceb7ab switch (const_type) {
99f63845ee65f89a523460ce4b6b0603a06eceb7ab case ELFEDIT_CONST_AV_386:
99f63845ee65f89a523460ce4b6b0603a06eceb7ab if (sym_table[ELFEDIT_CONST_AV_386] == NULL)
99f63845ee65f89a523460ce4b6b0603a06eceb7ab fill_capability_array(ELFEDIT_CONST_AV_386,
99f63845ee65f89a523460ce4b6b0603a06eceb7ab sym_av_386, elfcap_getdesc_hw1_386(),
99f63845ee65f89a523460ce4b6b0603a06eceb7ab ELFCAP_NUM_HW1_386);
99f63845ee65f89a523460ce4b6b0603a06eceb7ab break;
99f63845ee65f89a523460ce4b6b0603a06eceb7ab case ELFEDIT_CONST_AV_SPARC:
99f63845ee65f89a523460ce4b6b0603a06eceb7ab if (sym_table[ELFEDIT_CONST_AV_SPARC] == NULL)
99f63845ee65f89a523460ce4b6b0603a06eceb7ab fill_capability_array(ELFEDIT_CONST_AV_SPARC,
99f63845ee65f89a523460ce4b6b0603a06eceb7ab sym_av_sparc, elfcap_getdesc_hw1_sparc(),
99f63845ee65f89a523460ce4b6b0603a06eceb7ab ELFCAP_NUM_HW1_SPARC);
99f63845ee65f89a523460ce4b6b0603a06eceb7ab break;
99f63845ee65f89a523460ce4b6b0603a06eceb7ab case ELFEDIT_CONST_SF1_SUNW:
99f63845ee65f89a523460ce4b6b0603a06eceb7ab if (sym_table[ELFEDIT_CONST_SF1_SUNW] == NULL)
99f63845ee65f89a523460ce4b6b0603a06eceb7ab fill_capability_array(ELFEDIT_CONST_SF1_SUNW,
99f63845ee65f89a523460ce4b6b0603a06eceb7ab sym_sf1_sunw, elfcap_getdesc_sf1(), ELFCAP_NUM_SF1);
99f63845ee65f89a523460ce4b6b0603a06eceb7ab break;
99f63845ee65f89a523460ce4b6b0603a06eceb7ab }
99f63845ee65f89a523460ce4b6b0603a06eceb7ab
d29b2c4438482eb00488be49a1f5d6835f455546ab return (sym_table[const_type]);
d29b2c4438482eb00488be49a1f5d6835f455546ab}
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab/*
d29b2c4438482eb00488be49a1f5d6835f455546ab * Return the elfedit_atoui_t array that corresponds to the
d29b2c4438482eb00488be49a1f5d6835f455546ab * CA_SUNW_HW_1 hardware capabiliies field for a given
d29b2c4438482eb00488be49a1f5d6835f455546ab * machine type.
d29b2c4438482eb00488be49a1f5d6835f455546ab *
d29b2c4438482eb00488be49a1f5d6835f455546ab * This routine will return NULL if there is no definition for the
d29b2c4438482eb00488be49a1f5d6835f455546ab * machine specified.
d29b2c4438482eb00488be49a1f5d6835f455546ab */
d29b2c4438482eb00488be49a1f5d6835f455546abelfedit_atoui_sym_t *
d29b2c4438482eb00488be49a1f5d6835f455546abelfedit_mach_sunw_hw1_to_atoui(int mach)
d29b2c4438482eb00488be49a1f5d6835f455546ab{
d29b2c4438482eb00488be49a1f5d6835f455546ab switch (mach) {
d29b2c4438482eb00488be49a1f5d6835f455546ab case EM_386:
d29b2c4438482eb00488be49a1f5d6835f455546ab case EM_486:
d29b2c4438482eb00488be49a1f5d6835f455546ab case EM_AMD64:
d29b2c4438482eb00488be49a1f5d6835f455546ab return (elfedit_const_to_atoui(ELFEDIT_CONST_AV_386));
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab case EM_SPARC:
d29b2c4438482eb00488be49a1f5d6835f455546ab case EM_SPARC32PLUS:
d29b2c4438482eb00488be49a1f5d6835f455546ab case EM_SPARCV9:
d29b2c4438482eb00488be49a1f5d6835f455546ab return (elfedit_const_to_atoui(ELFEDIT_CONST_AV_SPARC));
d29b2c4438482eb00488be49a1f5d6835f455546ab }
d29b2c4438482eb00488be49a1f5d6835f455546ab
d29b2c4438482eb00488be49a1f5d6835f455546ab /* A machine we don't know about */
d29b2c4438482eb00488be49a1f5d6835f455546ab return (NULL);
d29b2c4438482eb00488be49a1f5d6835f455546ab}