/toolchain/binutils/binutils-2.25/gold/ |
binary.cc | 114 // * Five sections: null section, .data, .symtab, .strtab, .shstrtab 171 Stringpool shstrtab; local 172 shstrtab.add(".data", false, NULL); 173 shstrtab.add(".symtab", false, NULL); 174 shstrtab.add(".strtab", false, NULL); 175 shstrtab.add(".shstrtab", false, NULL); 176 shstrtab.set_string_offsets(); 192 output_size += shstrtab.get_strtab_size(); 202 this->write_section_header<size, big_endian>("", &shstrtab, elfcpp::SHT_NULL [all...] |
/frameworks/compile/mclinker/lib/LD/ |
ELFReader.cpp | 311 uint32_t shstrtab = 0x0; local 317 shstrtab = ehdr->e_shstrndx; 322 shstrtab = mcld::bswap16(ehdr->e_shstrndx); 340 // if shnum and shstrtab overflow, the actual values are in the 1st shdr 341 if (shnum == llvm::ELF::SHN_UNDEF || shstrtab == llvm::ELF::SHN_XINDEX) { 356 if (shstrtab == llvm::ELF::SHN_XINDEX) 357 shstrtab = sh_link; 367 // get .shstrtab first 368 shdr = &shdrTab[shstrtab]; 805 uint32_t shstrtab = 0x0 local [all...] |
/external/elfutils/src/ |
unstrip.c | 966 get_section_name (size_t ndx, const GElf_Shdr *shdr, const Elf_Data *shstrtab) 968 if (shdr->sh_name >= shstrtab->d_size) 971 return shstrtab->d_buf + shdr->sh_name; 1355 Elf_Data *shstrtab = elf_getdata (elf_getscn (unstripped, local [all...] |
ld.h | 915 struct Ebl_Strtab *shstrtab; member in struct:ld_state [all...] |
/frameworks/compile/mclinker/lib/Target/ |
GNULDBackend.cpp | 698 /// sizeShstrtab - compute the size of .shstrtab 700 size_t shstrtab = 0; local 701 // compute the size of .shstrtab section. 704 shstrtab += (*sect)->name().size() + 1; 706 getOutputFormat()->getShStrTab().setSize(shstrtab); 711 /// .dynsym, .dynstr, .hash and .shstrtab. 857 // The size of .shstrtab should be decided after output sections are all [all...] |
/toolchain/binutils/binutils-2.25/bfd/ |
elf.c | 280 bfd_byte *shstrtab = NULL; local 290 shstrtab = i_shdrp[shindex]->contents; 291 if (shstrtab == NULL) 300 || (shstrtab = (bfd_byte *) bfd_alloc (abfd, shstrtabsize + 1)) == NULL 302 shstrtab = NULL; 303 else if (bfd_bread (shstrtab, shstrtabsize, abfd) != shstrtabsize) 307 shstrtab = NULL; 314 shstrtab[shstrtabsize] = '\0'; 315 i_shdrp[shindex]->contents = shstrtab; 317 return (char *) shstrtab; 5317 struct elf_strtab_hash *shstrtab; local [all...] |