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.
*/
#if !defined(_ELF_H_INCLUDED_)
#define _ELF_H_INCLUDED_
#if defined(SOLARIS)
fgilham
committed
#include <sys/elf.h>
#else
#include <elf.h>
#endif
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)
fgilham
committed
typedef Elf32_Ehdr Elf_Ehdr;
typedef Elf32_Shdr Elf_Shdr;
typedef Elf32_Word Elf_Word;
typedef Elf32_Addr Elf_Addr;
#endif