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 5*9273SAli.Bahrami@Sun.COM * Common Development and Distribution License (the "License"). 6*9273SAli.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 */ 210Sstevel@tonic-gate /* LINTLIBRARY */ 220Sstevel@tonic-gate /* PROTOLIB1 */ 230Sstevel@tonic-gate 240Sstevel@tonic-gate /* 25*9273SAli.Bahrami@Sun.COM * Copyright 2009 Sun Microsystems, Inc. All rights reserved. 260Sstevel@tonic-gate * Use is subject to license terms. 270Sstevel@tonic-gate */ 280Sstevel@tonic-gate 290Sstevel@tonic-gate /* 300Sstevel@tonic-gate * Supplimental definitions for lint that help us avoid 310Sstevel@tonic-gate * options like `-x' that filter out things we want to 320Sstevel@tonic-gate * know about as well as things we don't. 330Sstevel@tonic-gate */ 340Sstevel@tonic-gate 350Sstevel@tonic-gate /* 360Sstevel@tonic-gate * The public interfaces are allowed to be "declared 370Sstevel@tonic-gate * but not used". 380Sstevel@tonic-gate */ 39*9273SAli.Bahrami@Sun.COM #include <stdio.h> 400Sstevel@tonic-gate #include <sys/auxv.h> 410Sstevel@tonic-gate #include <libelf.h> 420Sstevel@tonic-gate #include <link.h> 430Sstevel@tonic-gate #include <demangle.h> 440Sstevel@tonic-gate #include <elfcap.h> 45280Srie #include <dwarf.h> 460Sstevel@tonic-gate #include "sgs.h" 470Sstevel@tonic-gate #include "rtld.h" 480Sstevel@tonic-gate #include "libld.h" 490Sstevel@tonic-gate #include "conv.h" 50*9273SAli.Bahrami@Sun.COM 51*9273SAli.Bahrami@Sun.COM /* 52*9273SAli.Bahrami@Sun.COM * Suppress the actual message codes from the sgsmsg headers. 53*9273SAli.Bahrami@Sun.COM * With multiple string tables, we will have name collisions. 54*9273SAli.Bahrami@Sun.COM */ 55*9273SAli.Bahrami@Sun.COM #define LINTSUP_SUPPRESS_STRINGS 560Sstevel@tonic-gate #include "arch_msg.h" 57*9273SAli.Bahrami@Sun.COM #include "c_literal_msg.h" 58*9273SAli.Bahrami@Sun.COM #include "cap_msg.h" 59*9273SAli.Bahrami@Sun.COM #include "config_msg.h" 60*9273SAli.Bahrami@Sun.COM #include "corenote_msg.h" 61*9273SAli.Bahrami@Sun.COM #include "data_msg.h" 62*9273SAli.Bahrami@Sun.COM #include "deftag_msg.h" 63*9273SAli.Bahrami@Sun.COM #include "demangle_msg.h" 64*9273SAli.Bahrami@Sun.COM #include "dl_msg.h" 65*9273SAli.Bahrami@Sun.COM #include "dwarf_ehe_msg.h" 66*9273SAli.Bahrami@Sun.COM #include "dwarf_msg.h" 67*9273SAli.Bahrami@Sun.COM #include "dynamic_msg.h" 68*9273SAli.Bahrami@Sun.COM #include "elf_msg.h" 69*9273SAli.Bahrami@Sun.COM #include "globals_msg.h" 70*9273SAli.Bahrami@Sun.COM #include "group_msg.h" 71*9273SAli.Bahrami@Sun.COM #include "lddstub_msg.h" 72*9273SAli.Bahrami@Sun.COM #include "phdr_msg.h" 73*9273SAli.Bahrami@Sun.COM #include "relocate_amd64_msg.h" 74*9273SAli.Bahrami@Sun.COM #include "relocate_i386_msg.h" 75*9273SAli.Bahrami@Sun.COM #include "relocate_sparc_msg.h" 76*9273SAli.Bahrami@Sun.COM #include "sections_msg.h" 77*9273SAli.Bahrami@Sun.COM #include "segments_msg.h" 78*9273SAli.Bahrami@Sun.COM #include "symbols_msg.h" 79*9273SAli.Bahrami@Sun.COM #include "symbols_sparc_msg.h" 80*9273SAli.Bahrami@Sun.COM #include "syminfo_msg.h" 81*9273SAli.Bahrami@Sun.COM #include "version_msg.h" 82*9273SAli.Bahrami@Sun.COM 83*9273SAli.Bahrami@Sun.COM void 84*9273SAli.Bahrami@Sun.COM foo() 85*9273SAli.Bahrami@Sun.COM { 86*9273SAli.Bahrami@Sun.COM #define USE(name) (void) name((Msg)&_ ## name[0]) 87*9273SAli.Bahrami@Sun.COM 88*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_arch); 89*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_c_literal); 90*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_cap); 91*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_config); 92*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_corenote); 93*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_data); 94*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_deftag); 95*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_demangle); 96*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_dl); 97*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_dwarf_ehe); 98*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_dwarf); 99*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_dynamic); 100*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_elf); 101*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_globals); 102*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_group); 103*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_lddstub); 104*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_phdr); 105*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_relocate_amd64); 106*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_relocate_i386); 107*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_relocate_sparc); 108*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_sections); 109*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_segments); 110*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_symbols); 111*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_symbols_sparc); 112*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_syminfo); 113*9273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_version); 114*9273SAli.Bahrami@Sun.COM 115*9273SAli.Bahrami@Sun.COM #undef USE 116*9273SAli.Bahrami@Sun.COM } 117