UbixOS
2.0
|
#include <sys/types.h>
#include <i386/elf.h>
#include <sys/elf32.h>
#include <sys/elf64.h>
#include <ubixos/ubthread.h>
Go to the source code of this file.
Data Structures | |
struct | elf_file |
Macros | |
#define | __i386__ 1 |
#define | elfExecutable 0x002 |
#define | elfLibrary 0x003 |
Typedefs | |
typedef struct elf_file * | elf_file_t |
Functions | |
int | elf_load_file (kTask_t *p, const char *file, uint32_t *addr, uint32_t *entry) |
char * | elfGetPhType (int) |
char * | elfGetRelType (int) |
char * | elfGetShType (int) |
typedef struct elf_file * elf_file_t |
Definition at line 37 of file elf.c.
References _current, Elf32_Ehdr::e_entry, Elf32_Ehdr::e_ident, Elf32_Ehdr::e_phnum, Elf32_Ehdr::e_phoff, Elf32_Ehdr::e_type, ET_DYN, ET_EXEC, fclose(), fopen(), fread(), fseek(), taskStruct::id, K_PANIC, kfree(), kmalloc(), memset(), Elf32_Phdr::p_memsz, Elf32_Phdr::p_vaddr, PAGE_DEFAULT, PAGE_PRESENT, PAGE_USER, PT_LOAD, vmm_findFreePage(), vmm_remapPage(), and vmm_setPageAttributes().
char* elfGetPhType | ( | int | ) |
Definition at line 163 of file elf.c.
References elfPhType, and phTypeName.
char* elfGetRelType | ( | int | ) |
Definition at line 167 of file elf.c.
References elfRelType, and relTypeName.
Referenced by kmod_load(), and ldEnable().
char* elfGetShType | ( | int | ) |
Definition at line 159 of file elf.c.
References elfShType, and shTypeName.