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 */ 210Sstevel@tonic-gate /* LINTLIBRARY */ 220Sstevel@tonic-gate /* PROTOLIB1 */ 230Sstevel@tonic-gate 240Sstevel@tonic-gate /* 259273SAli.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 */ 399273SAli.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" 509273SAli.Bahrami@Sun.COM 519273SAli.Bahrami@Sun.COM /* 529273SAli.Bahrami@Sun.COM * Suppress the actual message codes from the sgsmsg headers. 539273SAli.Bahrami@Sun.COM * With multiple string tables, we will have name collisions. 549273SAli.Bahrami@Sun.COM */ 559273SAli.Bahrami@Sun.COM #define LINTSUP_SUPPRESS_STRINGS 560Sstevel@tonic-gate #include "arch_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" 699273SAli.Bahrami@Sun.COM #include "globals_msg.h" 709273SAli.Bahrami@Sun.COM #include "group_msg.h" 719273SAli.Bahrami@Sun.COM #include "lddstub_msg.h" 729273SAli.Bahrami@Sun.COM #include "phdr_msg.h" 739273SAli.Bahrami@Sun.COM #include "relocate_amd64_msg.h" 749273SAli.Bahrami@Sun.COM #include "relocate_i386_msg.h" 759273SAli.Bahrami@Sun.COM #include "relocate_sparc_msg.h" 769273SAli.Bahrami@Sun.COM #include "sections_msg.h" 779273SAli.Bahrami@Sun.COM #include "segments_msg.h" 789273SAli.Bahrami@Sun.COM #include "symbols_msg.h" 799273SAli.Bahrami@Sun.COM #include "symbols_sparc_msg.h" 809273SAli.Bahrami@Sun.COM #include "syminfo_msg.h" 81*9577SRod.Evans@Sun.COM #include "time_msg.h" 829273SAli.Bahrami@Sun.COM #include "version_msg.h" 839273SAli.Bahrami@Sun.COM 849273SAli.Bahrami@Sun.COM void 859273SAli.Bahrami@Sun.COM foo() 869273SAli.Bahrami@Sun.COM { 879273SAli.Bahrami@Sun.COM #define USE(name) (void) name((Msg)&_ ## name[0]) 889273SAli.Bahrami@Sun.COM 899273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_arch); 909273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_c_literal); 919273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_cap); 929273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_config); 939273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_corenote); 949273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_data); 959273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_deftag); 969273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_demangle); 979273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_dl); 989273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_dwarf_ehe); 999273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_dwarf); 1009273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_dynamic); 1019273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_elf); 1029273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_globals); 1039273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_group); 1049273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_lddstub); 1059273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_phdr); 1069273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_relocate_amd64); 1079273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_relocate_i386); 1089273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_relocate_sparc); 1099273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_sections); 1109273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_segments); 1119273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_symbols); 1129273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_symbols_sparc); 1139273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_syminfo); 114*9577SRod.Evans@Sun.COM USE(_sgs_msg_libconv_time); 1159273SAli.Bahrami@Sun.COM USE(_sgs_msg_libconv_version); 1169273SAli.Bahrami@Sun.COM 1179273SAli.Bahrami@Sun.COM #undef USE 1189273SAli.Bahrami@Sun.COM } 119