LF OS
Hobby operating system for amd64 with high ambitions
Loading...
Searching...
No Matches
elf.h File Reference

(7c4d7d1 userspace/term: change eyecandy inclusion to use objcopy instead of xxd)

#include <stdint.h>
+ Include dependency graph for elf.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  __attribute__
 

Macros

#define ELF_MAGIC   0x464c457f
 

Data Structure Documentation

◆ __attribute__

struct __attribute__

Definition at line 12 of file elf.h.

+ Collaboration diagram for __attribute__:
Data Fields
uint8_t _ident_padding[7]
unsigned long long accessed: 1
uint64_t align
unsigned long long available: 3
unsigned long long available2: 11
unsigned long long cachedisable: 1
unsigned long long dirty: 1
vm_table_entry_t entries[512]
ptr_t entrypoint
uint64_t fileLength
uint32_t flags
unsigned long long global: 1
uint16_t headerSize
unsigned long long huge: 1
uint8_t ident_abi
uint8_t ident_abi_version
uint8_t ident_arch
uint8_t ident_byteOrder
uint32_t ident_magic
uint8_t ident_version
uint16_t machine
uint64_t memLength
unsigned long long next_base: 40
unsigned long long nx: 1
uint64_t offset
uint64_t paddr
unsigned long long present: 1
uint16_t programHeaderCount
uint16_t programHeaderEntrySize
ptr_t programHeaderOffset
uint16_t sectionHeaderCount
uint16_t sectionHeaderEntrySize
ptr_t sectionHeaderOffset
uint16_t sectionHeaderSectionNameIndex
uint16_t type
uint32_t type
unsigned long long userspace: 1
uint64_t vaddr
uint32_t version
unsigned long long writeable: 1
unsigned long long writethrough: 1

Macro Definition Documentation

◆ ELF_MAGIC

#define ELF_MAGIC   0x464c457f

Minimal elf file parser and runtime

Definition at line 10 of file elf.h.