/[cmucl]/src/lisp/elf.h
ViewVC logotype

Contents of /src/lisp/elf.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.9 - (hide annotations)
Fri May 16 13:30:22 2008 UTC (5 years, 11 months ago) by rswindells
Branch: MAIN
CVS Tags: snapshot-2008-08, snapshot-2008-09, sse2-packed-2008-11-12, snapshot-2008-06, snapshot-2008-07, sse2-base, sse2-packed-base, snapshot-2008-12, snapshot-2008-11, merge-sse2-packed, snapshot-2008-10, sse2-checkpoint-2008-10-01, sse2-merge-with-2008-11, sse2-merge-with-2008-10, snapshot-2009-01
Branch point for: sse2-packed-branch, sse2-branch
Changes since 1.8: +2 -2 lines
File MIME type: text/plain
Make it build again for NetBSD.
1 rswindells 1.9 /* $Id: elf.h,v 1.9 2008/05/16 13:30:22 rswindells Exp $ */
2 fgilham 1.3
3     /* This code was written by Fred Gilham and has been placed in the public domain. It is
4     provided "AS-IS" and without warranty of any kind.
5     */
6    
7 fgilham 1.2 #if !defined(_ELF_H_INCLUDED_)
8    
9     #define _ELF_H_INCLUDED_
10    
11 fgilham 1.5 #define LINKER_SCRIPT "linker.sh"
12 fgilham 1.2
13 rtoy 1.7 #if defined(SOLARIS)
14 fgilham 1.6 #include <sys/elf.h>
15     #else
16     #include <elf.h>
17     #endif
18    
19 rtoy 1.8 /*
20     * We need to know which compiler was used to build lisp. I think gcc
21     * is used everywhere, except on Solaris/sparc, where we can use
22     * either gcc or Sun C.
23     */
24     #if defined(__SUNPRO_C) && defined(__sparc)
25     #define C_COMPILER "cc"
26     #else
27     #define C_COMPILER "gcc"
28     #endif
29    
30 fgilham 1.2 int write_elf_object(const char *, int, os_vm_address_t, os_vm_address_t);
31     void elf_cleanup(const char *);
32     int elf_run_linker(long, char *);
33    
34     void map_core_sections(char *);
35    
36 rswindells 1.9 #if defined(SOLARIS) || defined(linux) || defined(__NetBSD__)
37 fgilham 1.6 typedef Elf32_Ehdr Elf_Ehdr;
38     typedef Elf32_Shdr Elf_Shdr;
39     typedef Elf32_Word Elf_Word;
40     typedef Elf32_Addr Elf_Addr;
41     #endif
42    
43 fgilham 1.2 #endif

  ViewVC Help
Powered by ViewVC 1.1.5