1d29b2c44Sab196087 /* 2d29b2c44Sab196087 * CDDL HEADER START 3d29b2c44Sab196087 * 4d29b2c44Sab196087 * The contents of this file are subject to the terms of the 5d29b2c44Sab196087 * Common Development and Distribution License (the "License"). 6d29b2c44Sab196087 * You may not use this file except in compliance with the License. 7d29b2c44Sab196087 * 8d29b2c44Sab196087 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 9d29b2c44Sab196087 * or http://www.opensolaris.org/os/licensing. 10d29b2c44Sab196087 * See the License for the specific language governing permissions 11d29b2c44Sab196087 * and limitations under the License. 12d29b2c44Sab196087 * 13d29b2c44Sab196087 * When distributing Covered Code, include this CDDL HEADER in each 14d29b2c44Sab196087 * file and include the License file at usr/src/OPENSOLARIS.LICENSE. 15d29b2c44Sab196087 * If applicable, add the following below this CDDL HEADER, with the 16d29b2c44Sab196087 * fields enclosed by brackets "[]" replaced with your own identifying 17d29b2c44Sab196087 * information: Portions Copyright [yyyy] [name of copyright owner] 18d29b2c44Sab196087 * 19d29b2c44Sab196087 * CDDL HEADER END 20d29b2c44Sab196087 */ 21d29b2c44Sab196087 22d29b2c44Sab196087 /* 23*7c500f1bSSurya Prakki * Copyright 2010 Sun Microsystems, Inc. All rights reserved. 24d29b2c44Sab196087 * Use is subject to license terms. 25d29b2c44Sab196087 */ 26d29b2c44Sab196087 27d29b2c44Sab196087 /* 28d29b2c44Sab196087 * Supplemental Pseudo-code to get lint to consider these symbols used. 29d29b2c44Sab196087 */ 30d29b2c44Sab196087 #include <msg.h> 31d29b2c44Sab196087 #include <debug.h> 32d29b2c44Sab196087 #include <elfedit.h> 33d29b2c44Sab196087 34d29b2c44Sab196087 /* 35d29b2c44Sab196087 * Lint doesn't understand that both elfedit{32|64}_init_obj_state() 36d29b2c44Sab196087 * gets built, because it doesn't know that elfedit_machelf.c gets 37d29b2c44Sab196087 * compiled twice. The difference between this case and the others 38d29b2c44Sab196087 * is that we don't use macros to give them both the same name, 39d29b2c44Sab196087 * because elfedit.c needs to know about both explictly. So, 40d29b2c44Sab196087 * supply the "missing" one here, for lint's benefit. 41d29b2c44Sab196087 * 42d29b2c44Sab196087 * This dummy routine eliminates the "name used but not defined" 43d29b2c44Sab196087 * errors that otherwise result. 44d29b2c44Sab196087 */ 45d29b2c44Sab196087 #ifdef _ELF64 46d29b2c44Sab196087 /*ARGSUSED*/ 47d29b2c44Sab196087 void 48d29b2c44Sab196087 elfedit32_init_obj_state(const char *file, int fd, Elf *elf) 49d29b2c44Sab196087 { 50d29b2c44Sab196087 } 51d29b2c44Sab196087 #else 52d29b2c44Sab196087 /*ARGSUSED*/ 53d29b2c44Sab196087 void 54d29b2c44Sab196087 elfedit64_init_obj_state(const char *file, int fd, Elf *elf) 55d29b2c44Sab196087 { 56d29b2c44Sab196087 } 57d29b2c44Sab196087 #endif 58d29b2c44Sab196087 59*7c500f1bSSurya Prakki #pragma error_messages(off, E_STATIC_UNUSED) 60d29b2c44Sab196087 61*7c500f1bSSurya Prakki static void 62d29b2c44Sab196087 foo() 63d29b2c44Sab196087 { 64d29b2c44Sab196087 dbg_print(NULL, NULL, 0); 65d29b2c44Sab196087 66d29b2c44Sab196087 elfedit_array_elts_delete(NULL, NULL, 0, 0, 0, 0); 67d29b2c44Sab196087 elfedit_array_elts_move(NULL, NULL, 0, 0, 0, 0, 0, NULL); 68d29b2c44Sab196087 69d29b2c44Sab196087 (void) _elfedit_msg((Msg)&__elfedit_msg[0]); 70d29b2c44Sab196087 71d29b2c44Sab196087 (void) elfedit_atoi(NULL, NULL); 72d29b2c44Sab196087 (void) elfedit_atoui(NULL, NULL); 73d29b2c44Sab196087 (void) elfedit_atoconst(NULL, 0); 74d29b2c44Sab196087 75d29b2c44Sab196087 (void) elfedit_atoi2(NULL, NULL, NULL); 76d29b2c44Sab196087 (void) elfedit_atoui2(NULL, NULL, NULL); 77d29b2c44Sab196087 (void) elfedit_atoconst2(NULL, 0, NULL); 78d29b2c44Sab196087 79d29b2c44Sab196087 (void) elfedit_atoi_range(NULL, NULL, 0, 0, NULL); 80d29b2c44Sab196087 (void) elfedit_atoui_range(NULL, NULL, 0, 0, NULL); 81d29b2c44Sab196087 (void) elfedit_atoconst_range(NULL, NULL, 0, 0, 0); 82d29b2c44Sab196087 83d29b2c44Sab196087 (void) elfedit_atoi_range2(NULL, 0, 0, NULL, NULL); 84d29b2c44Sab196087 (void) elfedit_atoui_range2(NULL, 0, 0, NULL, NULL); 85d29b2c44Sab196087 (void) elfedit_atoconst_range2(NULL, 0, 0, 0, NULL); 86d29b2c44Sab196087 87d29b2c44Sab196087 (void) elfedit_atoi_value_to_str(NULL, 0, 0); 88d29b2c44Sab196087 (void) elfedit_atoui_value_to_str(NULL, 0, 0); 89d29b2c44Sab196087 (void) elfedit_atoconst_value_to_str(0, 0, 0); 90d29b2c44Sab196087 91d29b2c44Sab196087 (void) elfedit_atoshndx(NULL, 0); 92d29b2c44Sab196087 93d29b2c44Sab196087 (void) elfedit_cpl_atoi(NULL, NULL); 94d29b2c44Sab196087 (void) elfedit_cpl_atoui(NULL, NULL); 95d29b2c44Sab196087 (void) elfedit_cpl_atoconst(NULL, 0); 9655ef6355Sab196087 (void) elfedit_cpl_ndx(NULL, 0); 97d29b2c44Sab196087 98d29b2c44Sab196087 (void) elfedit_dyn_offset_to_str(NULL, NULL); 99d29b2c44Sab196087 (void) elfedit_dynstr_insert(NULL, NULL, NULL, NULL); 100d29b2c44Sab196087 (void) elfedit_flags(); 101d29b2c44Sab196087 (void) elfedit_modified_ehdr(NULL); 102d29b2c44Sab196087 (void) elfedit_modified_phdr(NULL); 103d29b2c44Sab196087 (void) elfedit_modified_shdr(NULL); 104d29b2c44Sab196087 (void) elfedit_name_to_shndx(NULL, NULL); 105d29b2c44Sab196087 (void) elfedit_name_to_symndx(NULL, NULL, NULL, ELFEDIT_MSG_ERR, NULL); 106d29b2c44Sab196087 (void) elfedit_outstyle(); 107cce0e03bSab196087 (void) elfedit_sec_get(NULL, NULL); 108d29b2c44Sab196087 (void) elfedit_sec_getcap(NULL, NULL, NULL); 109d29b2c44Sab196087 (void) elfedit_sec_getdyn(NULL, NULL, NULL); 11055ef6355Sab196087 (void) elfedit_sec_getstr(NULL, 0, 0); 111d29b2c44Sab196087 (void) elfedit_sec_getsyminfo(NULL, NULL, NULL); 112d29b2c44Sab196087 (void) elfedit_sec_getsymtab(NULL, 0, 0, NULL, NULL, NULL, NULL); 113d29b2c44Sab196087 (void) elfedit_sec_getversym(NULL, NULL, NULL, NULL); 114d29b2c44Sab196087 (void) elfedit_sec_getxshndx(NULL, NULL, NULL, NULL); 115d29b2c44Sab196087 (void) elfedit_sec_msgprefix(NULL); 116d29b2c44Sab196087 (void) elfedit_shndx_to_name(NULL, NULL); 117cce0e03bSab196087 elfedit_str_to_c_literal(NULL, NULL); 118d29b2c44Sab196087 (void) elfedit_strtab_insert(NULL, NULL, NULL, NULL); 119d29b2c44Sab196087 (void) elfedit_strtab_insert_test(NULL, NULL, NULL, NULL); 120d29b2c44Sab196087 (void) elfedit_type_to_shndx(NULL, 0); 121d29b2c44Sab196087 } 122