extern.h revision 1.15 1 1.15 msaitoh /* $NetBSD: extern.h,v 1.15 2002/04/16 18:36:08 msaitoh Exp $ */
2 1.4 thorpej
3 1.1 pk /*-
4 1.3 cgd * Copyright (c) 1996 Christopher G. Demetriou. All rights reserved.
5 1.1 pk * Copyright (c) 1992, 1993
6 1.1 pk * The Regents of the University of California. All rights reserved.
7 1.1 pk *
8 1.1 pk * Redistribution and use in source and binary forms, with or without
9 1.1 pk * modification, are permitted provided that the following conditions
10 1.1 pk * are met:
11 1.1 pk * 1. Redistributions of source code must retain the above copyright
12 1.1 pk * notice, this list of conditions and the following disclaimer.
13 1.1 pk * 2. Redistributions in binary form must reproduce the above copyright
14 1.1 pk * notice, this list of conditions and the following disclaimer in the
15 1.1 pk * documentation and/or other materials provided with the distribution.
16 1.1 pk * 3. All advertising materials mentioning features or use of this software
17 1.1 pk * must display the following acknowledgement:
18 1.1 pk * This product includes software developed by the University of
19 1.1 pk * California, Berkeley and its contributors.
20 1.1 pk * 4. Neither the name of the University nor the names of its contributors
21 1.1 pk * may be used to endorse or promote products derived from this software
22 1.1 pk * without specific prior written permission.
23 1.1 pk *
24 1.1 pk * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
25 1.1 pk * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
26 1.1 pk * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
27 1.1 pk * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
28 1.1 pk * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
29 1.1 pk * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
30 1.1 pk * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
31 1.1 pk * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
32 1.1 pk * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
33 1.1 pk * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
34 1.1 pk * SUCH DAMAGE.
35 1.1 pk *
36 1.2 mycroft * from: @(#)extern.h 8.1 (Berkeley) 6/6/93
37 1.1 pk */
38 1.1 pk
39 1.6 thorpej #if defined(__alpha__)
40 1.6 thorpej # define NLIST_ECOFF
41 1.6 thorpej # define NLIST_ELF64
42 1.6 thorpej #elif defined(__mips__)
43 1.6 thorpej # define NLIST_AOUT
44 1.6 thorpej # define NLIST_ECOFF
45 1.6 thorpej # define NLIST_ELF32
46 1.13 bjh21 #elif defined(__arm__) || defined(__i386__) || defined(__m68k__) || \
47 1.14 thorpej defined(__powerpc__) || defined(__vax__)
48 1.6 thorpej # define NLIST_AOUT
49 1.6 thorpej # define NLIST_ELF32
50 1.8 eeh #elif defined(__sparc__)
51 1.8 eeh # define NLIST_AOUT
52 1.8 eeh # define NLIST_ELF32
53 1.8 eeh # define NLIST_ELF64
54 1.15 msaitoh #elif defined(__sh__)
55 1.10 itojun # define NLIST_COFF
56 1.10 itojun # define NLIST_ELF32
57 1.6 thorpej #else
58 1.6 thorpej # define NLIST_AOUT
59 1.3 cgd /* #define NLIST_ECOFF */
60 1.6 thorpej /* #define NLIST_ELF32 */
61 1.3 cgd /* #define NLIST_ELF64 */
62 1.3 cgd #endif
63 1.3 cgd
64 1.3 cgd void create_knlist __P((const char *, DB *));
65 1.3 cgd void punt __P((void));
66 1.7 lukem int testdb __P((void));
67 1.3 cgd
68 1.3 cgd #ifdef NLIST_AOUT
69 1.3 cgd int create_knlist_aout __P((const char *, DB *));
70 1.10 itojun #endif
71 1.10 itojun #ifdef NLIST_COFF
72 1.10 itojun int create_knlist_coff __P((const char *, DB *));
73 1.3 cgd #endif
74 1.3 cgd #ifdef NLIST_ECOFF
75 1.3 cgd int create_knlist_ecoff __P((const char *, DB *));
76 1.3 cgd #endif
77 1.3 cgd #ifdef NLIST_ELF32
78 1.3 cgd int create_knlist_elf32 __P((const char *, DB *));
79 1.3 cgd #endif
80 1.3 cgd #ifdef NLIST_ELF64
81 1.3 cgd int create_knlist_elf64 __P((const char *, DB *));
82 1.3 cgd #endif
83