Home | History | Annotate | Download | only in linker

Lines Matching full:header_

185   ssize_t rc = TEMP_FAILURE_RETRY(pread64(fd_, &header_, sizeof(header_), file_offset_));
191 if (rc != sizeof(header_)) {
200 if (memcmp(header_.e_ident, ELFMAG, SELFMAG) != 0) {
207 int elf_class = header_.e_ident[EI_CLASS];
228 if (header_.e_ident[EI_DATA] != ELFDATA2LSB) {
229 DL_ERR("\"%s\" not little-endian: %d", name_.c_str(), header_.e_ident[EI_DATA]);
233 if (header_.e_type != ET_DYN) {
234 DL_ERR("\"%s\" has unexpected e_type: %d", name_.c_str(), header_.e_type);
238 if (header_.e_version != EV_CURRENT) {
239 DL_ERR("\"%s\" has unexpected e_version: %d", name_.c_str(), header_.e_version);
243 if (header_.e_machine != GetTargetElfMachine()) {
244 DL_ERR("\"%s\" has unexpected e_machine: %d", name_.c_str(), header_.e_machine);
265 phdr_num_ = header_.e_phnum;
276 if (!CheckFileRange(header_.e_phoff, size, alignof(ElfW(Phdr)))) {
279 static_cast<size_t>(header_.e_phoff),
284 if (!phdr_fragment_.Map(fd_, file_offset_, header_.e_phoff, size)) {
294 shdr_num_ = header_.e_shnum;
302 if (!CheckFileRange(header_.e_shoff, size, alignof(const ElfW(Shdr)))) {
305 static_cast<size_t>(header_.e_shoff),
310 if (!shdr_fragment_.Map(fd_, file_offset_, header_.e_shoff, size)) {