extern.h revision 1.10
11.10Scgd/* $NetBSD: extern.h,v 1.10 2000/06/14 17:26:00 cgd Exp $ */ 21.1Scgd 31.1Scgd/* 41.10Scgd * Copyright (c) 1997 Christopher G. Demetriou 51.10Scgd * All rights reserved. 61.10Scgd * 71.1Scgd * Redistribution and use in source and binary forms, with or without 81.1Scgd * modification, are permitted provided that the following conditions 91.1Scgd * are met: 101.1Scgd * 1. Redistributions of source code must retain the above copyright 111.1Scgd * notice, this list of conditions and the following disclaimer. 121.1Scgd * 2. Redistributions in binary form must reproduce the above copyright 131.1Scgd * notice, this list of conditions and the following disclaimer in the 141.1Scgd * documentation and/or other materials provided with the distribution. 151.1Scgd * 3. All advertising materials mentioning features or use of this software 161.1Scgd * must display the following acknowledgement: 171.10Scgd * This product includes software developed for the 181.10Scgd * NetBSD Project. See http://www.netbsd.org/ for 191.10Scgd * information about NetBSD. 201.1Scgd * 4. The name of the author may not be used to endorse or promote products 211.10Scgd * derived from this software without specific prior written permission. 221.10Scgd * 231.1Scgd * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 241.1Scgd * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 251.1Scgd * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 261.1Scgd * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 271.1Scgd * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 281.1Scgd * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 291.1Scgd * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 301.1Scgd * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 311.1Scgd * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 321.1Scgd * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 331.10Scgd * 341.10Scgd * <<Id: LICENSE,v 1.2 2000/06/14 15:57:33 cgd Exp>> 351.1Scgd */ 361.1Scgd 371.6Schristos#if defined(__alpha__) 381.6Schristos# define NLIST_ECOFF 391.6Schristos# define NLIST_ELF64 401.8Sbjh21#elif defined(__arm26__) || defined(__mips__) 411.6Schristos# define NLIST_ELF32 421.6Schristos#elif defined(__powerpc__) 431.6Schristos# define NLIST_ELF32 441.7Smsaitoh#elif defined(__sh3__) 451.7Smsaitoh# define NLIST_COFF 461.7Smsaitoh# define NLIST_ELF32 471.6Schristos#elif defined(__sparc__) || defined(__i386__) 481.6Schristos# define NLIST_AOUT 491.6Schristos# define NLIST_ELF32 501.1Scgd#else 511.6Schristos# define NLIST_AOUT 521.3Scgd/* #define NLIST_ECOFF */ 531.1Scgd/* #define NLIST_ELF32 */ 541.1Scgd/* #define NLIST_ELF64 */ 551.1Scgd#endif 561.1Scgd 571.1Scgd#ifdef NLIST_AOUT 581.1Scgdint check_aout(int, const char *); 591.2Scgdint hide_aout(int, const char *); 601.7Smsaitoh#endif 611.7Smsaitoh#ifdef NLIST_COFF 621.7Smsaitohint check_coff(int, const char *); 631.7Smsaitohint hide_coff(int, const char *); 641.3Scgd#endif 651.3Scgd#ifdef NLIST_ECOFF 661.3Scgdint check_ecoff(int, const char *); 671.3Scgdint hide_ecoff(int, const char *); 681.1Scgd#endif 691.1Scgd#ifdef NLIST_ELF32 701.1Scgdint check_elf32(int, const char *); 711.2Scgdint hide_elf32(int, const char *); 721.1Scgd#endif 731.1Scgd#ifdef NLIST_ELF64 741.1Scgdint check_elf64(int, const char *); 751.2Scgdint hide_elf64(int, const char *); 761.1Scgd#endif 771.1Scgd 781.1Scgdint in_keep_list(const char *symbol); 79