1 /* 2 * Copyright 2018, Jérôme Duval, jerome.duval@gmail.com. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 /*! Contains the ELF compat loader */ 7 8 9 //#define TRACE_ELF 10 #define ELF32_COMPAT 1 11 12 13 #include <elf.h> 14 15 16 #define elf_load_user_image elf32_load_user_image 17 #define elf_resolve_symbol elf32_resolve_symbol 18 #define elf_find_symbol elf32_find_symbol 19 #define elf_parse_dynamic_section elf32_parse_dynamic_section 20 #define elf_relocate elf32_relocate 21 22 #define arch_elf_relocate_rel arch_elf32_relocate_rel 23 #define arch_elf_relocate_rela arch_elf32_relocate_rela 24 25 26 #include "elf.cpp" 27