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

Contents of /src/lisp/elf.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.8.4.1.2.1 - (show annotations)
Wed Mar 18 15:37:29 2009 UTC (5 years, 1 month ago) by rtoy
Branch: unicode-utf16-extfmt-branch
CVS Tags: unicode-utf16-extfmt-2009-03-27, unicode-snapshot-2009-05, unicode-snapshot-2009-06, unicode-utf16-extfmt-2009-06-11
Changes since 1.8.4.1: +2 -2 lines
File MIME type: text/plain
Sync to utf16 branch, tag unicode-utf16-sync-label-2009-03-16.
1 /* $Id: elf.h,v 1.8.4.1.2.1 2009/03/18 15:37:29 rtoy Exp $ */
2
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 #if !defined(_ELF_H_INCLUDED_)
8
9 #define _ELF_H_INCLUDED_
10
11 #define LINKER_SCRIPT "linker.sh"
12
13 #if defined(SOLARIS)
14 #include <sys/elf.h>
15 #else
16 #include <elf.h>
17 #endif
18
19 /*
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 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(const char *);
35
36 #if defined(SOLARIS) || defined(linux) || defined(__NetBSD__)
37 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 #endif

  ViewVC Help
Powered by ViewVC 1.1.5