Home
last modified time | relevance | path

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