/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
/*
* Supplemental Pseudo-code to get lint to consider these symbols used.
*/
#include <msg.h>
#include <debug.h>
#include <elfedit.h>
/*
* Lint doesn't understand that both elfedit{32|64}_init_obj_state()
* gets built, because it doesn't know that elfedit_machelf.c gets
* compiled twice. The difference between this case and the others
* is that we don't use macros to give them both the same name,
* because elfedit.c needs to know about both explictly. So,
* supply the "missing" one here, for lint's benefit.
*
* This dummy routine eliminates the "name used but not defined"
* errors that otherwise result.
*/
#ifdef _ELF64
/*ARGSUSED*/
void
{
}
#else
/*ARGSUSED*/
void
{
}
#endif
static void
foo()
{
(void) elfedit_atoconst(NULL, 0);
(void) elfedit_atoi_value_to_str(NULL, 0, 0);
(void) elfedit_atoui_value_to_str(NULL, 0, 0);
(void) elfedit_atoconst_value_to_str(0, 0, 0);
(void) elfedit_atoshndx(NULL, 0);
(void) elfedit_cpl_atoconst(NULL, 0);
(void) elfedit_cpl_ndx(NULL, 0);
(void) elfedit_flags();
(void) elfedit_modified_ehdr(NULL);
(void) elfedit_modified_phdr(NULL);
(void) elfedit_modified_shdr(NULL);
(void) elfedit_outstyle();
(void) elfedit_sec_getstr(NULL, 0, 0);
(void) elfedit_sec_msgprefix(NULL);
(void) elfedit_type_to_shndx(NULL, 0);
}