wiki:Component/Loader/ElfFileLoader
Last modified 3 years ago Last modified on 02/27/09 11:16:32

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.