Home | History | Annotate | Download | only in gold

Lines Matching refs:Shdr

121       typename elfcpp::Shdr<size, big_endian> shdr(p);
122 bytecount = convert_to_section_size_type(shdr.get_sh_size());
123 contents = object->get_view(shdr.get_sh_offset(), bytecount, true, false);
203 typename elfcpp::Shdr<size, big_endian> shdrnames(pshdrnames);
479 typename This::Shdr shdr(p);
480 if (shdr.get_sh_type() == elfcpp::SHT_SYMTAB)
498 if (shdr.get_sh_type() == elfcpp::SHT_SYMTAB_SHNDX)
501 xindex_link = this->adjust_shndx(shdr.get_sh_link());
520 // Return whether SHDR has the right type and flags to be a GNU
526 const elfcpp::Shdr<size, big_endian>* shdr) const
528 elfcpp::Elf_Word sh_type = shdr->get_sh_type();
531 && (shdr->get_sh_flags() & elfcpp::SHF_ALLOC) != 0);
555 typename elfcpp::Shdr<size, big_endian> shdr(hdr);
556 sh_name = shdr.get_sh_name();
582 typename elfcpp::Shdr<size, big_endian> shdr(hdr);
583 if (shdr.get_sh_name() == sh_name)
612 typename This::Shdr shdr(s);
613 if (this->check_eh_frame_flags(&shdr))
686 typename elfcpp::Shdr<size, big_endian> shdr(p);
687 if (shdr.get_sh_type() == elfcpp::SHT_PROGBITS
688 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC) == 0)
690 if (shdr.get_sh_name() >= names_size)
693 i, static_cast<unsigned long>(shdr.get_sh_name()));
697 const char* name = names + shdr.get_sh_name();
797 typename This::Shdr symtabshdr(pshdrs
838 typename This::Shdr strtabshdr(pshdrs + strtab_shndx * This::shdr_size);
888 // INDEX is the index of the section group and SHDR is the section
905 typename This::Shdr shdr(shdrs + index * This::shdr_size);
906 const unsigned char* pcon = this->get_view(shdr.get_sh_offset(),
907 shdr.get_sh_size(), true, false);
924 const unsigned int link = this->adjust_shndx(shdr.get_sh_link());
925 typename This::Shdr symshdr(this, this->elf_file_.section_header(link));
928 unsigned int symndx = shdr.get_sh_info();
972 typename This::Shdr member_shdr(shdrs + sym_shndx * This::shdr_size);
1003 size_t count = shdr.get_sh_size() / sizeof(elfcpp::Elf_Word);
1032 typename This::Shdr member_shdr(shdrs + shndx * This::shdr_size);
1093 shdr, flags, &shndxes);
1099 // name of the section and SHDR is the section header.
1119 const elfcpp::Shdr<size, big_endian>& shdr)
1121 typename elfcpp::Elf_types<size>::Elf_WXword sh_size = shdr.get_sh_size();
1191 const typename This::Shdr& shdr,
1196 Output_section* os = layout->layout(this, shndx, name, shdr,
1223 const typename This::Shdr& shdr,
1236 shdr,
1385 typename This::Shdr shdr(pshdrs);
1388 if (should_defer_layout && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC))
1391 unsigned int sh_type = shdr.get_sh_type();
1394 unsigned int target_shndx = this->adjust_shndx(shdr.get_sh_info());
1467 typename This::Shdr shdr(pshdrs);
1469 if (shdr.get_sh_name() >= section_names_size)
1472 i, static_cast<unsigned long>(shdr.get_sh_name()));
1476 const char* name = pnames + shdr.get_sh_name();
1492 gnu_stack_flags |= shdr.get_sh_flags();
1514 if (shdr.get_sh_type() == elfcpp::SHT_GROUP)
1522 else if ((shdr.get_sh_flags() & elfcpp::SHF_GROUP) == 0
1525 if (!this->include_linkonce_section(layout, i, name, shdr))
1534 && can_incremental_update(shdr.get_sh_type()))
1536 off_t sh_size = shdr.get_sh_size();
1556 || shdr.get_sh_type() == elfcpp::SHT_INIT_ARRAY
1557 || shdr.get_sh_type() == elfcpp::SHT_FINI_ARRAY)
1578 && (shdr.get_sh_type() == elfcpp::SHT_REL
1579 || shdr.get_sh_type() == elfcpp::SHT_RELA))
1585 if (relocatable && shdr.get_sh_type() == elfcpp::SHT_GROUP)
1596 && this->check_eh_frame_flags(&shdr))
1627 if (((shdr.get_sh_flags() & elfcpp::SHF_ALLOC) != 0)
1648 if (((shdr.get_sh_flags() & elfcpp::SHF_ALLOC) != 0)
1675 && (shdr.get_sh_flags() & elfcpp::SHF_ALLOC))
1706 this->layout_section(layout, i, name, shdr, reloc_shndx[i],
1714 && !(shdr.get_sh_flags() & elfcpp::SHF_ALLOC))
1738 typename This::Shdr shdr(pshdr);
1746 shdr,
1766 typename This::Shdr shdr(pshdr);
1768 unsigned int data_shndx = this->adjust_shndx(shdr.get_sh_info());
1782 const char* name = pnames + shdr.get_sh_name();
1799 Output_section* os = layout->layout_reloc(this, i, shdr, data_section,
1858 typename This::Shdr shdr(deferred->shdr_data_);
1862 && this->check_eh_frame_flags(&shdr))
1883 shdr,
1895 shdr, deferred->reloc_shndx_,
1911 typename This::Shdr shdr(deferred->shdr_data_);
1912 unsigned int data_shndx = this->adjust_shndx(shdr.get_sh_info());
1925 Output_section* os = layout->layout_reloc(this, shndx, shdr,
2107 typename This::Shdr symtabshdr(this,
2510 typename This::Shdr shdr(pshdrs);
2511 return shdr.get_sh_flags();
2529 typename This::Shdr shdr(pshdrs);
2530 return shdr.get_sh_entsize();
2562 typename This::Shdr symtabshdr(this,