Searched refs:sectionHeader (Results 1 - 8 of 8) sorted by relevance

/haiku/src/system/runtime_loader/
H A Delf_haiku_version.cpp44 elf_shdr* sectionHeader local
47 if (sheaderSize + sectionHeader->sh_size > bufferSize) {
53 char* sectionStrings = buffer + bufferSize - sectionHeader->sh_size;
54 length = _kern_read(fd, sectionHeader->sh_offset, sectionStrings,
55 sectionHeader->sh_size);
56 if (length != (int)sectionHeader->sh_size) {
66 sectionHeader = (elf_shdr*)(buffer + i * eheader.e_shentsize);
67 const char* sectionName = sectionStrings + sectionHeader->sh_name;
68 if (sectionHeader->sh_name != 0
70 commentOffset = sectionHeader
[all...]
H A Druntime_loader.cpp542 Elf32_Shdr* sectionHeader local
544 if ((off_t)sectionHeader->sh_offset + (off_t)sectionHeader->sh_size
550 + sectionHeader->sh_offset;
552 switch (sectionHeader->sh_type) {
555 if (sectionHeader->sh_size < (off_t)sizeof(symbolHash[0]))
559 = sectionHeader->sh_size / sizeof(symbolHash[0]);
566 symbolTableSize = sectionHeader->sh_size;
571 if (sectionHeader->sh_addr == 0)
574 stringTableSize = (off_t)sectionHeader
604 Elf32_Shdr* sectionHeader = (Elf32_Shdr*)((uint8*)sectionHeaders local
[all...]
/haiku/src/kits/debugger/elf/
H A DElfFile.cpp462 Shdr* sectionHeader = (Shdr*)(sectionHeaderTable + i local
465 const char* name = sectionStrings + Get(sectionHeader->sh_name);
466 if (Get(sectionHeader->sh_name) >= sectionStringSize
467 || !_CheckRange(Get(sectionHeader->sh_offset),
468 Get(sectionHeader->sh_size))
475 Get(sectionHeader->sh_type), fFD, Get(sectionHeader->sh_offset),
476 Get(sectionHeader->sh_size), Get(sectionHeader->sh_addr),
477 Get(sectionHeader
[all...]
/haiku/src/kits/debug/
H A DImage.cpp344 elf_shdr* sectionHeader = (elf_shdr*) local
347 if (sectionHeader->sh_type == sectionType) {
350 + sectionHeader->sh_link * elfHeader->e_shentsize);
355 if ((off_t)(sectionHeader->sh_offset + sectionHeader->sh_size)
362 fSymbolTable = (elf_sym*)(fMappedFile + sectionHeader->sh_offset);
364 fSymbolCount = sectionHeader->sh_size / sizeof(elf_sym);
/haiku/src/tools/
H A Dset_haiku_revision.cpp621 ShdrType sectionHeader; local
622 Read(shOffset, &sectionHeader, sizeof(ShdrType),
626 uint32_t type = GetValue(sectionHeader.sh_type);
627 off_t offset = GetValue(sectionHeader.sh_offset);
628 size_t size = GetValue(sectionHeader.sh_size);
629 uint32_t nameIndex = GetValue(sectionHeader.sh_name);
/haiku/src/kits/app/
H A DMessageAdapter.cpp724 dano_section_header sectionHeader; local
725 reader(sectionHeader);
728 sectionHeader.size = pad_to_8(sectionHeader.size);
730 if (offset + sectionHeader.size > size || sectionHeader.size < 0)
733 ssize_t fieldSize = sectionHeader.size - sizeof(dano_section_header);
737 offset += sectionHeader.size;
747 switch (sectionHeader.code) {
858 offset += sectionHeader
[all...]
/haiku/src/tools/restest/
H A DResourceFile.cpp738 Elf32_Shdr sectionHeader; local
739 read_exactly(file, shOffset, &sectionHeader, sizeof(Elf32_Shdr),
742 uint32 type = _GetUInt32(sectionHeader.sh_type);
743 uint32 offset = _GetUInt32(sectionHeader.sh_offset);
744 uint32 size = _GetUInt32(sectionHeader.sh_size);
802 PEFSectionHeader sectionHeader; local
803 read_exactly(file, shOffset, &sectionHeader, kPEFSectionHeaderSize,
806 uint32 offset = _GetUInt32(sectionHeader.containerOffset);
807 uint32 size = _GetUInt32(sectionHeader.packedSize);
/haiku/src/kits/storage/
H A DResourceFile.cpp623 ElfSectionHeader& sectionHeader local
627 uint32 type = _GetInt(sectionHeader.sh_type);
628 uint64 offset = _GetInt(sectionHeader.sh_offset);
629 uint64 size = _GetInt(sectionHeader.sh_size);
702 PEFSectionHeader sectionHeader; local
703 read_exactly(file, shOffset, &sectionHeader, kPEFSectionHeaderSize,
706 uint32 offset = _GetInt(sectionHeader.containerOffset);
707 uint32 size = _GetInt(sectionHeader.packedSize);

Completed in 102 milliseconds