Home
last modified time | relevance | path

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

/frameworks/compile/mclinker/lib/LD/
DELFReader.cpp329 const llvm::ELF::Elf32_Shdr* shdr = NULL; in readSectionHeaders() local
344 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 …]
DELFObjectWriter.cpp308 ElfXX_Shdr* shdr = reinterpret_cast<ElfXX_Shdr*>(region.begin()); in emitSectionHeader() local
315 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 …]