elfconst.c revision 4f680cc668fa6cf678c531083400ade9a9c7934c
16e76cdd6e3cfaac7d91c3b0644ee1bc6cf52347agiri * CDDL HEADER START
16e76cdd6e3cfaac7d91c3b0644ee1bc6cf52347agiri * The contents of this file are subject to the terms of the
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * Common Development and Distribution License (the "License").
16e76cdd6e3cfaac7d91c3b0644ee1bc6cf52347agiri * You may not use this file except in compliance with the License.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * See the License for the specific language governing permissions
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * and limitations under the License.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * When distributing Covered Code, include this CDDL HEADER in each
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * If applicable, add the following below this CDDL HEADER, with the
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * fields enclosed by brackets "[]" replaced with your own identifying
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * information: Portions Copyright [yyyy] [name of copyright owner]
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * CDDL HEADER END
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * Copyright 2009 Sun Microsystems, Inc. All rights reserved.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * Use is subject to license terms.
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * This file contains support for mapping well known ELF constants
b27516f55237249607f754e6e42e865f12456675agiri * to their numeric values. It is a layer on top of the elfedit_atoui()
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * routines defined in util.c. The idea is that centralizing all the
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * support for such constants will improve consistency between modules,
c0dd49bdd68c0d758a67d56f07826f3b45cfc664Eiji Ota * allow for sharing of commonly needed items, and make the modules
{ NULL }
{ NULL }
{ NULL }
{ NULL }
{ NULL }
{ NULL }
{ NULL }
} ste_type_t;
* definition of elfedit_const_t in elfedit.h.
static conv_iter_ret_t
(*cnt)++;
return (CONV_ITER_CONT);
static conv_iter_ret_t
return (CONV_ITER_CONT);
case STE_LC:
case STE_LC_OS:
case STE_LC_MACH:
case STE_LC_OS_MACH:
case STE_LC_OS:
if (osabi_change)
case STE_LC_MACH:
if (mach_change)
case STE_LC_OS_MACH:
if (first) {
first = 0;
if ((const_type < 0) ||