20#define ELF_ENDIANNESS_MOS_DEFAULT ELF_ENDIANNESS_LSB
22#define ELF_ENDIANNESS_MOS_DEFAULT ELF_ENDIANNESS_MSB
113 auxv.push_back(Elf64_auxv_t{ .a_type = type, .a_un = { .a_val = val } });
Process * elf_create_process(mos::string_view path, Process *parent, const mos::vector< mos::string > &argv, const mos::vector< mos::string > &envp, const stdio_t *ios)
bool elf_do_fill_process(Process *proc, FsBaseFile *file, elf_header_t elf, elf_startup_info_t *info)
bool elf_read_and_verify_executable(FsBaseFile *file, elf_header_t *header)
#define MOS_STATIC_ASSERT
basic_string_view< char > string_view
elf_program_header_type header_type
Flags< elf_ph_flags > flags() const
mos::vector< mos::string > envp
mos::string_view invocation
mos::vector< mos::string > argv
mos::vector< Elf64_auxv_t > auxv
void AddAuxvEntry(u64 type, u64 val)
A wrapper type for the standard I/O streams.