Lines Matching refs:section

206 							 fHeader->sh_size, "Failed to read section!\n");
227 printf("section %32s: size: %lu\n", GetName(), GetSize());
234 ElfSymbol::ElfSymbol(ElfSection* section, int32 index)
235 : fSection(section),
249 ElfSymbol::SetTo(ElfSection* section, int32 index)
252 fSection = section;
330 ElfRelocation::ElfRelocation(ElfSection* section, int32 index)
331 : fSection(section),
345 ElfRelocation::SetTo(ElfSection* section, int32 index)
348 fSection = section;
453 ElfSection* section = NULL;
457 section = _FindNextSection();
460 section = fFile->SectionAt(fSectionIndex);
463 while (section && fEntryIndex >= section->CountEntries()) {
465 section = _FindNextSection();
469 if (section) {
470 relocation->SetTo(section, fEntryIndex);
483 ElfSection* section = fFile->SectionAt(fSectionIndex);
484 if (section && (section->GetType() == SHT_REL || section->GetType() == SHT_RELA))
485 return section;
530 // delete section headers
561 if (ElfSection* section = SectionAt(index, true)) {
562 data = (const char*)section->GetData();
563 size = (data ? section->GetSize() : 0);
575 ElfSection* section = NULL;
577 section = fSections + index;
578 if (load && !section->GetData()) {
579 if (section->Load() != B_OK) {
580 section = NULL;
581 printf("Failed to load section %" B_PRId32 "\n", index);
585 return section;
652 // section header table offset
654 printf("ELF file has no section header table!\n");
660 printf("Invalid ELF header: invalid section header table offset: %" B_PRIu32 ".",
664 // section header table offset
668 printf("Invalid ELF header: section header table exceeds file: %" B_PRIu32 ".",
672 // allocate memory for the section header table and read it
680 "Failed to read section headers!\n");
683 // allocate memory for the section pointers
709 ElfSection& section = fSections[index];
710 error = section.Load();