2722387f30847b828b57ba9ca59d2b47ee9244ecrie/*
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * CDDL HEADER START
2722387f30847b828b57ba9ca59d2b47ee9244ecrie *
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * The contents of this file are subject to the terms of the
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * Common Development and Distribution License (the "License").
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * You may not use this file except in compliance with the License.
2722387f30847b828b57ba9ca59d2b47ee9244ecrie *
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * or http://www.opensolaris.org/os/licensing.
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * See the License for the specific language governing permissions
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * and limitations under the License.
2722387f30847b828b57ba9ca59d2b47ee9244ecrie *
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * When distributing Covered Code, include this CDDL HEADER in each
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * If applicable, add the following below this CDDL HEADER, with the
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * fields enclosed by brackets "[]" replaced with your own identifying
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * information: Portions Copyright [yyyy] [name of copyright owner]
2722387f30847b828b57ba9ca59d2b47ee9244ecrie *
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * CDDL HEADER END
2722387f30847b828b57ba9ca59d2b47ee9244ecrie */
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrie/*
7c500f1b365962a44422512b5c00083faa05a79eSurya Prakki * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * Use is subject to license terms.
2722387f30847b828b57ba9ca59d2b47ee9244ecrie */
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrie/*
2722387f30847b828b57ba9ca59d2b47ee9244ecrie * Supplemental Pseudo-code to get lint to consider these symbols used.
2722387f30847b828b57ba9ca59d2b47ee9244ecrie */
2722387f30847b828b57ba9ca59d2b47ee9244ecrie#include <msg.h>
2722387f30847b828b57ba9ca59d2b47ee9244ecrie#include <_elfwrap.h>
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
7c500f1b365962a44422512b5c00083faa05a79eSurya Prakki#pragma error_messages(off, E_STATIC_UNUSED)
7c500f1b365962a44422512b5c00083faa05a79eSurya Prakki
7c500f1b365962a44422512b5c00083faa05a79eSurya Prakkistatic void
2722387f30847b828b57ba9ca59d2b47ee9244ecriefoo()
2722387f30847b828b57ba9ca59d2b47ee9244ecrie{
2722387f30847b828b57ba9ca59d2b47ee9244ecrie (void) _elfwrap_msg((Msg)&__elfwrap_msg[0]);
2722387f30847b828b57ba9ca59d2b47ee9244ecrie}
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrie#if defined(_ELF64)
2722387f30847b828b57ba9ca59d2b47ee9244ecrieint
2722387f30847b828b57ba9ca59d2b47ee9244ecrieinput32(int argc, char **argv, const char *prog, const char *ofile,
2722387f30847b828b57ba9ca59d2b47ee9244ecrie ObjDesc_t *odp)
2722387f30847b828b57ba9ca59d2b47ee9244ecrie{
2722387f30847b828b57ba9ca59d2b47ee9244ecrie return (input64(argc, argv, prog, ofile, odp));
2722387f30847b828b57ba9ca59d2b47ee9244ecrie}
2722387f30847b828b57ba9ca59d2b47ee9244ecrie
2722387f30847b828b57ba9ca59d2b47ee9244ecrieint
2722387f30847b828b57ba9ca59d2b47ee9244ecrieoutput32(const char *prog, int fd, const char *ofile, ushort_t mach,
2722387f30847b828b57ba9ca59d2b47ee9244ecrie ObjDesc_t *odp)
2722387f30847b828b57ba9ca59d2b47ee9244ecrie{
2722387f30847b828b57ba9ca59d2b47ee9244ecrie return (output64(prog, fd, ofile, mach, odp));
2722387f30847b828b57ba9ca59d2b47ee9244ecrie}
2722387f30847b828b57ba9ca59d2b47ee9244ecrie#else
2722387f30847b828b57ba9ca59d2b47ee9244ecrieint
2722387f30847b828b57ba9ca59d2b47ee9244ecrieinput64(int argc, char **argv, const char *prog, const char *ofile,
2722387f30847b828b57ba9ca59d2b47ee9244ecrie ObjDesc_t *odp)
2722387f30847b828b57ba9ca59d2b47ee9244ecrie{
2722387f30847b828b57ba9ca59d2b47ee9244ecrie return (input32(argc, argv, prog, ofile, odp));
2722387f30847b828b57ba9ca59d2b47ee9244ecrie}
2722387f30847b828b57ba9ca59d2b47ee9244ecrieint
2722387f30847b828b57ba9ca59d2b47ee9244ecrieoutput64(const char *prog, int fd, const char *ofile, ushort_t mach,
2722387f30847b828b57ba9ca59d2b47ee9244ecrie ObjDesc_t *odp)
2722387f30847b828b57ba9ca59d2b47ee9244ecrie{
2722387f30847b828b57ba9ca59d2b47ee9244ecrie return (output32(prog, fd, ofile, mach, odp));
2722387f30847b828b57ba9ca59d2b47ee9244ecrie}
2722387f30847b828b57ba9ca59d2b47ee9244ecrie#endif