Skip to content
Snippets Groups Projects
elf.h 713 B
Newer Older
/* $Id: elf.h,v 1.7 2007/07/24 19:09:14 rtoy Exp $ */

/* This code was written by Fred Gilham and has been placed in the public domain.  It is
   provided "AS-IS" and without warranty of any kind.
*/

fgilham's avatar
fgilham committed
#if !defined(_ELF_H_INCLUDED_)

#define _ELF_H_INCLUDED_

#define LINKER_SCRIPT "linker.sh"
fgilham's avatar
fgilham committed

fgilham's avatar
fgilham committed
int write_elf_object(const char *, int, os_vm_address_t, os_vm_address_t);
void elf_cleanup(const char *);
int elf_run_linker(long, char *);

void map_core_sections(char *);

#if defined(SOLARIS) || defined(linux)
typedef Elf32_Ehdr Elf_Ehdr;
typedef Elf32_Shdr Elf_Shdr;
typedef Elf32_Word Elf_Word;
typedef Elf32_Addr Elf_Addr;
#endif

fgilham's avatar
fgilham committed
#endif