wiki:Component/Loader/ElfFileLoader

Version 1 (modified by Nicolas Pouillon, 15 years ago) (diff)

--

Use

You have to compile your platform with

 Uses('common:elf_file_loader'),

You only have to pass the filename to the Loader

  soclib::common::Loader loader( "myfile.elf" );

What gets loaded

This loader respects the section headers from the ELF it opens.

  • It will load every non-empty loadable section
  • It will mark read-only sections as such
  • It will mark code sections as such
  • It uses Loading Memory Address (LMA) of sections.