Home
last modified time | relevance | path

Searched refs:elf_file (Results 1 – 1 of 1) sorted by relevance

/bootable/libbootloader/gbl/libelf/
Delf_static_relocation_checker.cpp32 std::ifstream elf_file(file_name, std::ios::binary | std::ios::ate); in ReadFile() local
33 std::streamsize file_size = elf_file.tellg(); in ReadFile()
34 elf_file.seekg(0, std::ios::beg); in ReadFile()
37 elf_file.read(reinterpret_cast<char*>(ret.data()), file_size); in ReadFile()
64 std::vector<uint8_t> elf_file = ReadFile(argv[1]); in main() local
68 ASSERT(elf_file.size() >= sizeof(elf_header)); in main()
69 memcpy(&elf_header, elf_file.data(), sizeof(elf_header)); in main()
72 const uint8_t* program_hdr_start = elf_file.data() + elf_header.e_phoff; in main()
77 ASSERT(static_cast<size_t>(header_start + sizeof(elf_program_header) - elf_file.data()) <= in main()
78 elf_file.size()); in main()