xref: /onnv-gate/usr/src/cmd/sgs/libconv/common/lintsup.c (revision 12877:69001e4756ae)
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
59273SAli.Bahrami@Sun.COM  * Common Development and Distribution License (the "License").
69273SAli.Bahrami@Sun.COM  * 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  */
21*12877SRod.Evans@Sun.COM 
22*12877SRod.Evans@Sun.COM /*
23*12877SRod.Evans@Sun.COM  * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
24*12877SRod.Evans@Sun.COM  */
250Sstevel@tonic-gate /* LINTLIBRARY */
260Sstevel@tonic-gate /* PROTOLIB1 */
270Sstevel@tonic-gate 
280Sstevel@tonic-gate /*
29*12877SRod.Evans@Sun.COM  * Supplemental definitions for lint that help us avoid
300Sstevel@tonic-gate  * options like `-x' that filter out things we want to
310Sstevel@tonic-gate  * know about as well as things we don't.
320Sstevel@tonic-gate  */
330Sstevel@tonic-gate 
340Sstevel@tonic-gate /*
350Sstevel@tonic-gate  * The public interfaces are allowed to be "declared
360Sstevel@tonic-gate  * but not used".
370Sstevel@tonic-gate  */
389273SAli.Bahrami@Sun.COM #include <stdio.h>
390Sstevel@tonic-gate #include <sys/auxv.h>
400Sstevel@tonic-gate #include <libelf.h>
410Sstevel@tonic-gate #include <link.h>
420Sstevel@tonic-gate #include <demangle.h>
430Sstevel@tonic-gate #include <elfcap.h>
44280Srie #include <dwarf.h>
450Sstevel@tonic-gate #include "sgs.h"
460Sstevel@tonic-gate #include "rtld.h"
470Sstevel@tonic-gate #include "libld.h"
480Sstevel@tonic-gate #include "conv.h"
499273SAli.Bahrami@Sun.COM 
509273SAli.Bahrami@Sun.COM /*
519273SAli.Bahrami@Sun.COM  * Suppress the actual message codes from the sgsmsg headers.
529273SAli.Bahrami@Sun.COM  * With multiple string tables, we will have name collisions.
539273SAli.Bahrami@Sun.COM  */
549273SAli.Bahrami@Sun.COM #define	LINTSUP_SUPPRESS_STRINGS
550Sstevel@tonic-gate #include "arch_msg.h"
56*12877SRod.Evans@Sun.COM #include "audit_msg.h"
579273SAli.Bahrami@Sun.COM #include "c_literal_msg.h"
589273SAli.Bahrami@Sun.COM #include "cap_msg.h"
599273SAli.Bahrami@Sun.COM #include "config_msg.h"
609273SAli.Bahrami@Sun.COM #include "corenote_msg.h"
619273SAli.Bahrami@Sun.COM #include "data_msg.h"
629273SAli.Bahrami@Sun.COM #include "deftag_msg.h"
639273SAli.Bahrami@Sun.COM #include "demangle_msg.h"
649273SAli.Bahrami@Sun.COM #include "dl_msg.h"
659273SAli.Bahrami@Sun.COM #include "dwarf_ehe_msg.h"
669273SAli.Bahrami@Sun.COM #include "dwarf_msg.h"
679273SAli.Bahrami@Sun.COM #include "dynamic_msg.h"
689273SAli.Bahrami@Sun.COM #include "elf_msg.h"
6911734SAli.Bahrami@Sun.COM #include "entry_msg.h"
709273SAli.Bahrami@Sun.COM #include "globals_msg.h"
719273SAli.Bahrami@Sun.COM #include "group_msg.h"
729273SAli.Bahrami@Sun.COM #include "lddstub_msg.h"
7311734SAli.Bahrami@Sun.COM #include "map_msg.h"
749273SAli.Bahrami@Sun.COM #include "phdr_msg.h"
759273SAli.Bahrami@Sun.COM #include "relocate_amd64_msg.h"
769273SAli.Bahrami@Sun.COM #include "relocate_i386_msg.h"
779273SAli.Bahrami@Sun.COM #include "relocate_sparc_msg.h"
789273SAli.Bahrami@Sun.COM #include "sections_msg.h"
799273SAli.Bahrami@Sun.COM #include "segments_msg.h"
809273SAli.Bahrami@Sun.COM #include "symbols_msg.h"
819273SAli.Bahrami@Sun.COM #include "symbols_sparc_msg.h"
829273SAli.Bahrami@Sun.COM #include "syminfo_msg.h"
839577SRod.Evans@Sun.COM #include "time_msg.h"
849273SAli.Bahrami@Sun.COM #include "version_msg.h"
859273SAli.Bahrami@Sun.COM 
869273SAli.Bahrami@Sun.COM void
foo()879273SAli.Bahrami@Sun.COM foo()
889273SAli.Bahrami@Sun.COM {
899273SAli.Bahrami@Sun.COM #define	USE(name) (void) name((Msg)&_ ## name[0])
909273SAli.Bahrami@Sun.COM 
919273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_arch);
92*12877SRod.Evans@Sun.COM 	USE(_sgs_msg_libconv_audit);
939273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_c_literal);
949273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_cap);
959273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_config);
969273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_corenote);
979273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_data);
989273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_deftag);
999273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_demangle);
1009273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_dl);
1019273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_dwarf_ehe);
1029273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_dwarf);
1039273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_dynamic);
1049273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_elf);
10511734SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_entry);
1069273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_globals);
1079273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_group);
1089273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_lddstub);
10911734SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_map);
1109273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_phdr);
1119273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_relocate_amd64);
1129273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_relocate_i386);
1139273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_relocate_sparc);
1149273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_sections);
1159273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_segments);
1169273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_symbols);
1179273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_symbols_sparc);
1189273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_syminfo);
1199577SRod.Evans@Sun.COM 	USE(_sgs_msg_libconv_time);
1209273SAli.Bahrami@Sun.COM 	USE(_sgs_msg_libconv_version);
1219273SAli.Bahrami@Sun.COM 
1229273SAli.Bahrami@Sun.COM #undef USE
1239273SAli.Bahrami@Sun.COM }
124