xref: /onnv-gate/usr/src/cmd/sgs/elfdump/common/lintsup.c (revision 11594:d414d6f28ebb)
10Sstevel@tonic-gate /*
20Sstevel@tonic-gate  * CDDL HEADER START
30Sstevel@tonic-gate  *
40Sstevel@tonic-gate  * The contents of this file are subject to the terms of the
51618Srie  * Common Development and Distribution License (the "License").
61618Srie  * You may not use this file except in compliance with the License.
70Sstevel@tonic-gate  *
80Sstevel@tonic-gate  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
90Sstevel@tonic-gate  * or http://www.opensolaris.org/os/licensing.
100Sstevel@tonic-gate  * See the License for the specific language governing permissions
110Sstevel@tonic-gate  * and limitations under the License.
120Sstevel@tonic-gate  *
130Sstevel@tonic-gate  * When distributing Covered Code, include this CDDL HEADER in each
140Sstevel@tonic-gate  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
150Sstevel@tonic-gate  * If applicable, add the following below this CDDL HEADER, with the
160Sstevel@tonic-gate  * fields enclosed by brackets "[]" replaced with your own identifying
170Sstevel@tonic-gate  * information: Portions Copyright [yyyy] [name of copyright owner]
180Sstevel@tonic-gate  *
190Sstevel@tonic-gate  * CDDL HEADER END
200Sstevel@tonic-gate  */
210Sstevel@tonic-gate 
220Sstevel@tonic-gate /*
23*11594SSurya.Prakki@Sun.COM  * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
241618Srie  * Use is subject to license terms.
251618Srie  */
260Sstevel@tonic-gate 
270Sstevel@tonic-gate /*
281618Srie  * Supplemental Pseudo-code to get lint to consider these symbols used.
290Sstevel@tonic-gate  */
301618Srie #include	<sys/types.h>
311618Srie #include	<libelf.h>
321618Srie #include	<conv.h>
331618Srie #include	<msg.h>
341618Srie #include	<_elfdump.h>
350Sstevel@tonic-gate 
36*11594SSurya.Prakki@Sun.COM #pragma error_messages(off, E_STATIC_UNUSED)
37*11594SSurya.Prakki@Sun.COM 
38*11594SSurya.Prakki@Sun.COM static void
foo()390Sstevel@tonic-gate foo()
400Sstevel@tonic-gate {
410Sstevel@tonic-gate 	(void) _elfdump_msg((Msg)&__elfdump_msg[0]);
420Sstevel@tonic-gate }
431618Srie 
441618Srie #if	defined(_ELF64)
455411Sab196087 int
regular32(const char * file,int fd,Elf * elf,uint_t flags,const char * wname,int wfd,uchar_t osabi)465411Sab196087 regular32(const char *file, int fd, Elf *elf, uint_t flags,
479273SAli.Bahrami@Sun.COM     const char *wname, int wfd, uchar_t osabi)
481618Srie {
499273SAli.Bahrami@Sun.COM 	return (regular64(file, fd, elf, flags, wname, wfd, osabi));
501618Srie }
511618Srie #else
525411Sab196087 int
regular64(const char * file,int fd,Elf * elf,uint_t flags,const char * wname,int wfd,uchar_t osabi)535411Sab196087 regular64(const char *file, int fd, Elf *elf, uint_t flags,
549273SAli.Bahrami@Sun.COM     const char *wname, int wfd, uchar_t osabi)
551618Srie {
569273SAli.Bahrami@Sun.COM 	return (regular32(file, fd, elf, flags, wname, wfd, osabi));
571618Srie }
581618Srie #endif
59