Lines Matching full:elfcpp
1 // elfcpp_file.h -- file access for elfcpp -*- C++ -*-
6 // This file is part of elfcpp.
44 // of type View will never survive longer than the elfcpp function.
54 // elfcpp::Shdr shdr(file, ef.section_header(n));
63 #include "elfcpp.h"
65 namespace elfcpp
302 elfcpp::ELFMAG0, elfcpp::ELFMAG1,
303 elfcpp::ELFMAG2, elfcpp::ELFMAG3
333 if (bufsize < elfcpp::EI_NIDENT)
339 int v = ehdr_buf[elfcpp::EI_VERSION];
340 if (v != elfcpp::EV_CURRENT)
342 if (v == elfcpp::EV_NONE)
349 int c = ehdr_buf[elfcpp::EI_CLASS];
350 if (c == elfcpp::ELFCLASSNONE)
355 else if (c != elfcpp::ELFCLASS32
356 && c != elfcpp::ELFCLASS64)
362 int d = ehdr_buf[elfcpp::EI_DATA];
363 if (d == elfcpp::ELFDATANONE)
368 else if (d != elfcpp::ELFDATA2LSB
369 && d != elfcpp::ELFDATA2MSB)
375 *big_endian = (d == elfcpp::ELFDATA2MSB);
377 if (c == elfcpp::ELFCLASS32)
379 if (bufsize < elfcpp::Elf_sizes<32>::ehdr_size)
388 if (bufsize < elfcpp::Elf_sizes<64>::ehdr_size)
462 if (this->shstrndx_ >= elfcpp::SHN_LORESERVE + 0x100)
716 } // End namespace elfcpp.