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

Contents of /src/lisp/elf.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations)
Tue Jan 20 03:58:11 2009 UTC (5 years, 3 months ago) by agoncharov
Branch: MAIN
CVS Tags: sparc-tramp-assem-base, post-merge-intl-branch, merged-unicode-utf16-extfmt-2009-06-11, intl-branch-working-2010-02-19-1000, unicode-string-buffer-impl-base, unicode-string-buffer-base, sparc-tramp-assem-2010-07-19, amd64-dd-start, release-19f-pre1, intl-2-branch-base, label-2009-03-16, release-19f-base, merge-with-19f, intl-branch-working-2010-02-11-1000, RELEASE_19f, release-20a-base, pre-merge-intl-branch, snapshot-2010-05, snapshot-2010-04, snapshot-2010-07, snapshot-2010-06, snapshot-2010-01, snapshot-2010-03, snapshot-2010-02, label-2009-03-25, intl-branch-2010-03-18-1300, RELEASE_20a, release-20a-pre1, snapshot-2009-11, snapshot-2009-12, portable-clx-import-2009-06-16, intl-branch-base, portable-clx-base, snapshot-2009-08, snapshot-2009-02, snapshot-2009-07, snapshot-2009-05, snapshot-2009-04
Branch point for: RELEASE-19F-BRANCH, portable-clx-branch, unicode-string-buffer-branch, sparc-tramp-assem-branch, RELEASE-20A-BRANCH, amd64-dd-branch, unicode-string-buffer-impl-branch, intl-branch, intl-2-branch
Changes since 1.9: +2 -2 lines
File MIME type: text/plain
Use 'const char *' instead of 'char *' where appropriate
1 /* $Id: elf.h,v 1.10 2009/01/20 03:58:11 agoncharov Rel $ */
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