Searched refs:shdr (Results 1 – 3 of 3) sorted by relevance
169 [[nodiscard]] T* ShdrOffsetToAddr(const typename ElfT::Shdr* shdr) const;171 [[nodiscard]] static constexpr bool IsCompressed(const ElfT::Shdr* shdr) { in IsCompressed() argument172 return (shdr->sh_flags & SHF_COMPRESSED) != 0; in IsCompressed()201 const typename ElfT::Shdr* shdr = shdr_table_ + i; in ValidateShdrTable() local203 if (shdr->sh_link >= shdr_num_) { in ValidateShdrTable()205 "section %zd: sh_link (%d) is out of bounds (shnum=%zd)", i, shdr->sh_link, shdr_num_); in ValidateShdrTable()210 if (shdr->sh_type == SHT_NOBITS) { in ValidateShdrTable()214 if (shdr->sh_offset >= file_size) { in ValidateShdrTable()217 static_cast<size_t>(shdr->sh_offset), in ValidateShdrTable()222 size_t section_end = shdr->sh_offset + shdr->sh_size; in ValidateShdrTable()[all …]
329 const llvm::ELF::Elf32_Shdr* shdr = NULL; in readSectionHeaders() local344 shdr = reinterpret_cast<const llvm::ELF::Elf32_Shdr*>(shdr_region.begin()); in readSectionHeaders()347 sh_size = shdr->sh_size; in readSectionHeaders()348 sh_link = shdr->sh_link; in readSectionHeaders()350 sh_size = mcld::bswap32(shdr->sh_size); in readSectionHeaders()351 sh_link = mcld::bswap32(shdr->sh_link); in readSectionHeaders()368 shdr = &shdrTab[shstrtab]; in readSectionHeaders()370 sh_offset = shdr->sh_offset; in readSectionHeaders()371 sh_size = shdr->sh_size; in readSectionHeaders()373 sh_offset = mcld::bswap32(shdr->sh_offset); in readSectionHeaders()[all …]
308 ElfXX_Shdr* shdr = reinterpret_cast<ElfXX_Shdr*>(region.begin()); in emitSectionHeader() local315 shdr[sectIdx].sh_name = shstridx; in emitSectionHeader()316 shdr[sectIdx].sh_type = ld_sect->type(); in emitSectionHeader()317 shdr[sectIdx].sh_flags = ld_sect->flag(); in emitSectionHeader()318 shdr[sectIdx].sh_addr = ld_sect->addr(); in emitSectionHeader()319 shdr[sectIdx].sh_offset = ld_sect->offset(); in emitSectionHeader()320 shdr[sectIdx].sh_size = ld_sect->size(); in emitSectionHeader()321 shdr[sectIdx].sh_addralign = ld_sect->align(); in emitSectionHeader()322 shdr[sectIdx].sh_entsize = getSectEntrySize<SIZE>(*ld_sect); in emitSectionHeader()323 shdr[sectIdx].sh_link = getSectLink(*ld_sect, pConfig); in emitSectionHeader()[all …]