Home | History | Annotate | Download | only in LD

Lines Matching refs:shdr

343   const llvm::ELF::Elf32_Shdr *shdr = NULL;
354 // if shnum and shstrtab overflow, the actual values are in the 1st shdr
358 shdr = reinterpret_cast<const llvm::ELF::Elf32_Shdr*>(shdr_region.begin());
361 sh_size = shdr->sh_size;
362 sh_link = shdr->sh_link;
365 sh_size = mcld::bswap32(shdr->sh_size);
366 sh_link = mcld::bswap32(shdr->sh_link);
383 shdr = &shdrTab[shstrtab];
385 sh_offset = shdr->sh_offset;
386 sh_size = shdr->sh_size;
389 sh_offset = mcld::bswap32(shdr->sh_offset);
390 sh_size = mcld::bswap32(shdr->sh_size);
864 const llvm::ELF::Elf64_Shdr *shdr = NULL;
875 // if shnum and shstrtab overflow, the actual values are in the 1st shdr
879 shdr = reinterpret_cast<const llvm::ELF::Elf64_Shdr*>(shdr_region.begin());
882 sh_size = shdr->sh_size;
883 sh_link = shdr->sh_link;
886 sh_size = mcld::bswap64(shdr->sh_size);
887 sh_link = mcld::bswap32(shdr->sh_link);
904 shdr = &shdrTab[shstrtab];
906 sh_offset = shdr->sh_offset;
907 sh_size = shdr->sh_size;
910 sh_offset = mcld::bswap64(shdr->sh_offset);
911 sh_size = mcld::bswap64(shdr->sh_size);