15088Sab196087 /*
25088Sab196087 * CDDL HEADER START
35088Sab196087 *
45088Sab196087 * The contents of this file are subject to the terms of the
55088Sab196087 * Common Development and Distribution License (the "License").
65088Sab196087 * You may not use this file except in compliance with the License.
75088Sab196087 *
85088Sab196087 * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
95088Sab196087 * or http://www.opensolaris.org/os/licensing.
105088Sab196087 * See the License for the specific language governing permissions
115088Sab196087 * and limitations under the License.
125088Sab196087 *
135088Sab196087 * When distributing Covered Code, include this CDDL HEADER in each
145088Sab196087 * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
155088Sab196087 * If applicable, add the following below this CDDL HEADER, with the
165088Sab196087 * fields enclosed by brackets "[]" replaced with your own identifying
175088Sab196087 * information: Portions Copyright [yyyy] [name of copyright owner]
185088Sab196087 *
195088Sab196087 * CDDL HEADER END
205088Sab196087 */
215088Sab196087
225088Sab196087 /*
23*11594SSurya.Prakki@Sun.COM * Copyright 2010 Sun Microsystems, Inc. All rights reserved.
245088Sab196087 * Use is subject to license terms.
255088Sab196087 */
265088Sab196087
275088Sab196087 /*
285088Sab196087 * Supplemental Pseudo-code to get lint to consider these symbols used.
295088Sab196087 */
305088Sab196087 #include <msg.h>
315088Sab196087 #include <debug.h>
325088Sab196087 #include <elfedit.h>
335088Sab196087
345088Sab196087 /*
355088Sab196087 * Lint doesn't understand that both elfedit{32|64}_init_obj_state()
365088Sab196087 * gets built, because it doesn't know that elfedit_machelf.c gets
375088Sab196087 * compiled twice. The difference between this case and the others
385088Sab196087 * is that we don't use macros to give them both the same name,
395088Sab196087 * because elfedit.c needs to know about both explictly. So,
405088Sab196087 * supply the "missing" one here, for lint's benefit.
415088Sab196087 *
425088Sab196087 * This dummy routine eliminates the "name used but not defined"
435088Sab196087 * errors that otherwise result.
445088Sab196087 */
455088Sab196087 #ifdef _ELF64
465088Sab196087 /*ARGSUSED*/
475088Sab196087 void
elfedit32_init_obj_state(const char * file,int fd,Elf * elf)485088Sab196087 elfedit32_init_obj_state(const char *file, int fd, Elf *elf)
495088Sab196087 {
505088Sab196087 }
515088Sab196087 #else
525088Sab196087 /*ARGSUSED*/
535088Sab196087 void
elfedit64_init_obj_state(const char * file,int fd,Elf * elf)545088Sab196087 elfedit64_init_obj_state(const char *file, int fd, Elf *elf)
555088Sab196087 {
565088Sab196087 }
575088Sab196087 #endif
585088Sab196087
59*11594SSurya.Prakki@Sun.COM #pragma error_messages(off, E_STATIC_UNUSED)
605088Sab196087
61*11594SSurya.Prakki@Sun.COM static void
foo()625088Sab196087 foo()
635088Sab196087 {
645088Sab196087 dbg_print(NULL, NULL, 0);
655088Sab196087
665088Sab196087 elfedit_array_elts_delete(NULL, NULL, 0, 0, 0, 0);
675088Sab196087 elfedit_array_elts_move(NULL, NULL, 0, 0, 0, 0, 0, NULL);
685088Sab196087
695088Sab196087 (void) _elfedit_msg((Msg)&__elfedit_msg[0]);
705088Sab196087
715088Sab196087 (void) elfedit_atoi(NULL, NULL);
725088Sab196087 (void) elfedit_atoui(NULL, NULL);
735088Sab196087 (void) elfedit_atoconst(NULL, 0);
745088Sab196087
755088Sab196087 (void) elfedit_atoi2(NULL, NULL, NULL);
765088Sab196087 (void) elfedit_atoui2(NULL, NULL, NULL);
775088Sab196087 (void) elfedit_atoconst2(NULL, 0, NULL);
785088Sab196087
795088Sab196087 (void) elfedit_atoi_range(NULL, NULL, 0, 0, NULL);
805088Sab196087 (void) elfedit_atoui_range(NULL, NULL, 0, 0, NULL);
815088Sab196087 (void) elfedit_atoconst_range(NULL, NULL, 0, 0, 0);
825088Sab196087
835088Sab196087 (void) elfedit_atoi_range2(NULL, 0, 0, NULL, NULL);
845088Sab196087 (void) elfedit_atoui_range2(NULL, 0, 0, NULL, NULL);
855088Sab196087 (void) elfedit_atoconst_range2(NULL, 0, 0, 0, NULL);
865088Sab196087
875088Sab196087 (void) elfedit_atoi_value_to_str(NULL, 0, 0);
885088Sab196087 (void) elfedit_atoui_value_to_str(NULL, 0, 0);
895088Sab196087 (void) elfedit_atoconst_value_to_str(0, 0, 0);
905088Sab196087
915088Sab196087 (void) elfedit_atoshndx(NULL, 0);
925088Sab196087
935088Sab196087 (void) elfedit_cpl_atoi(NULL, NULL);
945088Sab196087 (void) elfedit_cpl_atoui(NULL, NULL);
955088Sab196087 (void) elfedit_cpl_atoconst(NULL, 0);
966225Sab196087 (void) elfedit_cpl_ndx(NULL, 0);
975088Sab196087
985088Sab196087 (void) elfedit_dyn_offset_to_str(NULL, NULL);
995088Sab196087 (void) elfedit_dynstr_insert(NULL, NULL, NULL, NULL);
1005088Sab196087 (void) elfedit_flags();
1015088Sab196087 (void) elfedit_modified_ehdr(NULL);
1025088Sab196087 (void) elfedit_modified_phdr(NULL);
1035088Sab196087 (void) elfedit_modified_shdr(NULL);
1045088Sab196087 (void) elfedit_name_to_shndx(NULL, NULL);
1055088Sab196087 (void) elfedit_name_to_symndx(NULL, NULL, NULL, ELFEDIT_MSG_ERR, NULL);
1065088Sab196087 (void) elfedit_outstyle();
1075892Sab196087 (void) elfedit_sec_get(NULL, NULL);
1085088Sab196087 (void) elfedit_sec_getcap(NULL, NULL, NULL);
1095088Sab196087 (void) elfedit_sec_getdyn(NULL, NULL, NULL);
1106225Sab196087 (void) elfedit_sec_getstr(NULL, 0, 0);
1115088Sab196087 (void) elfedit_sec_getsyminfo(NULL, NULL, NULL);
1125088Sab196087 (void) elfedit_sec_getsymtab(NULL, 0, 0, NULL, NULL, NULL, NULL);
1135088Sab196087 (void) elfedit_sec_getversym(NULL, NULL, NULL, NULL);
1145088Sab196087 (void) elfedit_sec_getxshndx(NULL, NULL, NULL, NULL);
1155088Sab196087 (void) elfedit_sec_msgprefix(NULL);
1165088Sab196087 (void) elfedit_shndx_to_name(NULL, NULL);
1175892Sab196087 elfedit_str_to_c_literal(NULL, NULL);
1185088Sab196087 (void) elfedit_strtab_insert(NULL, NULL, NULL, NULL);
1195088Sab196087 (void) elfedit_strtab_insert_test(NULL, NULL, NULL, NULL);
1205088Sab196087 (void) elfedit_type_to_shndx(NULL, 0);
1215088Sab196087 }
122