17c478bd9Sstevel@tonic-gate /* 27c478bd9Sstevel@tonic-gate * CDDL HEADER START 37c478bd9Sstevel@tonic-gate * 47c478bd9Sstevel@tonic-gate * The contents of this file are subject to the terms of the 54f680cc6SAli Bahrami * Common Development and Distribution License (the "License"). 64f680cc6SAli Bahrami * You may not use this file except in compliance with the License. 77c478bd9Sstevel@tonic-gate * 87c478bd9Sstevel@tonic-gate * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 97c478bd9Sstevel@tonic-gate * or http://www.opensolaris.org/os/licensing. 107c478bd9Sstevel@tonic-gate * See the License for the specific language governing permissions 117c478bd9Sstevel@tonic-gate * and limitations under the License. 127c478bd9Sstevel@tonic-gate * 137c478bd9Sstevel@tonic-gate * When distributing Covered Code, include this CDDL HEADER in each 147c478bd9Sstevel@tonic-gate * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 157c478bd9Sstevel@tonic-gate * If applicable, add the following below this CDDL HEADER, with the 167c478bd9Sstevel@tonic-gate * fields enclosed by brackets "[]" replaced with your own identifying 177c478bd9Sstevel@tonic-gate * information: Portions Copyright [yyyy] [name of copyright owner] 187c478bd9Sstevel@tonic-gate * 197c478bd9Sstevel@tonic-gate * CDDL HEADER END 207c478bd9Sstevel@tonic-gate */ 21*2020b2b6SRod Evans 22*2020b2b6SRod Evans /* 23*2020b2b6SRod Evans * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved. 24*2020b2b6SRod Evans */ 257c478bd9Sstevel@tonic-gate /* LINTLIBRARY */ 267c478bd9Sstevel@tonic-gate /* PROTOLIB1 */ 277c478bd9Sstevel@tonic-gate 287c478bd9Sstevel@tonic-gate /* 29*2020b2b6SRod Evans * Supplemental definitions for lint that help us avoid 307c478bd9Sstevel@tonic-gate * options like `-x' that filter out things we want to 317c478bd9Sstevel@tonic-gate * know about as well as things we don't. 327c478bd9Sstevel@tonic-gate */ 337c478bd9Sstevel@tonic-gate 347c478bd9Sstevel@tonic-gate /* 357c478bd9Sstevel@tonic-gate * The public interfaces are allowed to be "declared 367c478bd9Sstevel@tonic-gate * but not used". 377c478bd9Sstevel@tonic-gate */ 384f680cc6SAli Bahrami #include <stdio.h> 397c478bd9Sstevel@tonic-gate #include <sys/auxv.h> 407c478bd9Sstevel@tonic-gate #include <libelf.h> 417c478bd9Sstevel@tonic-gate #include <link.h> 427c478bd9Sstevel@tonic-gate #include <demangle.h> 437c478bd9Sstevel@tonic-gate #include <elfcap.h> 44dffec89cSrie #include <dwarf.h> 457c478bd9Sstevel@tonic-gate #include "sgs.h" 467c478bd9Sstevel@tonic-gate #include "rtld.h" 477c478bd9Sstevel@tonic-gate #include "libld.h" 487c478bd9Sstevel@tonic-gate #include "conv.h" 494f680cc6SAli Bahrami 504f680cc6SAli Bahrami /* 514f680cc6SAli Bahrami * Suppress the actual message codes from the sgsmsg headers. 524f680cc6SAli Bahrami * With multiple string tables, we will have name collisions. 534f680cc6SAli Bahrami */ 544f680cc6SAli Bahrami #define LINTSUP_SUPPRESS_STRINGS 557c478bd9Sstevel@tonic-gate #include "arch_msg.h" 56*2020b2b6SRod Evans #include "audit_msg.h" 574f680cc6SAli Bahrami #include "c_literal_msg.h" 584f680cc6SAli Bahrami #include "cap_msg.h" 594f680cc6SAli Bahrami #include "config_msg.h" 604f680cc6SAli Bahrami #include "corenote_msg.h" 614f680cc6SAli Bahrami #include "data_msg.h" 624f680cc6SAli Bahrami #include "deftag_msg.h" 634f680cc6SAli Bahrami #include "demangle_msg.h" 644f680cc6SAli Bahrami #include "dl_msg.h" 654f680cc6SAli Bahrami #include "dwarf_ehe_msg.h" 664f680cc6SAli Bahrami #include "dwarf_msg.h" 674f680cc6SAli Bahrami #include "dynamic_msg.h" 684f680cc6SAli Bahrami #include "elf_msg.h" 6969112eddSAli Bahrami #include "entry_msg.h" 704f680cc6SAli Bahrami #include "globals_msg.h" 714f680cc6SAli Bahrami #include "group_msg.h" 724f680cc6SAli Bahrami #include "lddstub_msg.h" 7369112eddSAli Bahrami #include "map_msg.h" 744f680cc6SAli Bahrami #include "phdr_msg.h" 754f680cc6SAli Bahrami #include "relocate_amd64_msg.h" 764f680cc6SAli Bahrami #include "relocate_i386_msg.h" 774f680cc6SAli Bahrami #include "relocate_sparc_msg.h" 784f680cc6SAli Bahrami #include "sections_msg.h" 794f680cc6SAli Bahrami #include "segments_msg.h" 804f680cc6SAli Bahrami #include "symbols_msg.h" 814f680cc6SAli Bahrami #include "symbols_sparc_msg.h" 824f680cc6SAli Bahrami #include "syminfo_msg.h" 832017c965SRod Evans #include "time_msg.h" 844f680cc6SAli Bahrami #include "version_msg.h" 854f680cc6SAli Bahrami 864f680cc6SAli Bahrami void foo()874f680cc6SAli Bahramifoo() 884f680cc6SAli Bahrami { 894f680cc6SAli Bahrami #define USE(name) (void) name((Msg)&_ ## name[0]) 904f680cc6SAli Bahrami 914f680cc6SAli Bahrami USE(_sgs_msg_libconv_arch); 92*2020b2b6SRod Evans USE(_sgs_msg_libconv_audit); 934f680cc6SAli Bahrami USE(_sgs_msg_libconv_c_literal); 944f680cc6SAli Bahrami USE(_sgs_msg_libconv_cap); 954f680cc6SAli Bahrami USE(_sgs_msg_libconv_config); 964f680cc6SAli Bahrami USE(_sgs_msg_libconv_corenote); 974f680cc6SAli Bahrami USE(_sgs_msg_libconv_data); 984f680cc6SAli Bahrami USE(_sgs_msg_libconv_deftag); 994f680cc6SAli Bahrami USE(_sgs_msg_libconv_demangle); 1004f680cc6SAli Bahrami USE(_sgs_msg_libconv_dl); 1014f680cc6SAli Bahrami USE(_sgs_msg_libconv_dwarf_ehe); 1024f680cc6SAli Bahrami USE(_sgs_msg_libconv_dwarf); 1034f680cc6SAli Bahrami USE(_sgs_msg_libconv_dynamic); 1044f680cc6SAli Bahrami USE(_sgs_msg_libconv_elf); 10569112eddSAli Bahrami USE(_sgs_msg_libconv_entry); 1064f680cc6SAli Bahrami USE(_sgs_msg_libconv_globals); 1074f680cc6SAli Bahrami USE(_sgs_msg_libconv_group); 1084f680cc6SAli Bahrami USE(_sgs_msg_libconv_lddstub); 10969112eddSAli Bahrami USE(_sgs_msg_libconv_map); 1104f680cc6SAli Bahrami USE(_sgs_msg_libconv_phdr); 1114f680cc6SAli Bahrami USE(_sgs_msg_libconv_relocate_amd64); 1124f680cc6SAli Bahrami USE(_sgs_msg_libconv_relocate_i386); 1134f680cc6SAli Bahrami USE(_sgs_msg_libconv_relocate_sparc); 1144f680cc6SAli Bahrami USE(_sgs_msg_libconv_sections); 1154f680cc6SAli Bahrami USE(_sgs_msg_libconv_segments); 1164f680cc6SAli Bahrami USE(_sgs_msg_libconv_symbols); 1174f680cc6SAli Bahrami USE(_sgs_msg_libconv_symbols_sparc); 1184f680cc6SAli Bahrami USE(_sgs_msg_libconv_syminfo); 1192017c965SRod Evans USE(_sgs_msg_libconv_time); 1204f680cc6SAli Bahrami USE(_sgs_msg_libconv_version); 1214f680cc6SAli Bahrami 1224f680cc6SAli Bahrami #undef USE 1234f680cc6SAli Bahrami } 124