| /llvm-project-15.0.7/llvm/test/tools/obj2yaml/ELF/ |
| H A D | offset.yaml | 68 ## sh_offset of .foo2 is 0x41. 216 ## sh_offset == 0x40. 220 ## sh_offset == 0x41. 224 ## sh_offset == 0x41. 228 ## sh_offset == 0x100. 233 ## sh_offset == 0x100. 271 ## sh_offset == 0xe8. 275 ## sh_offset == 0xe9. 279 ## sh_offset == 0xeb. 283 ## sh_offset == 0xeb. [all …]
|
| /llvm-project-15.0.7/lld/test/ELF/ |
| H A D | nobits-offset.s | 7 ## p_offset will be set to the sh_offset field of the section. Check we align 8 ## sh_offset to sh_addr modulo max-page-size, so that p_vaddr=p_offset (mod
|
| H A D | tls-nobits-offset.s | 7 ## p_offset will be set to the sh_offset field of the section. Check we align 8 ## sh_offset to sh_addr modulo p_align, so that p_vaddr=p_offset (mod
|
| /llvm-project-15.0.7/lld/test/ELF/linkerscript/ |
| H A D | tls-nobits-offset.s | 11 ## p_offset will be set to the sh_offset field of the section. Check we align 12 ## sh_offset to sh_addr modulo p_align, so that p_vaddr=p_offset (mod
|
| H A D | nobits-offset.s | 11 ## p_offset will be set to the sh_offset field of the section. Check we align 12 ## sh_offset to sh_addr modulo max-page-size, so that p_vaddr=p_offset (mod
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-objcopy/ELF/ |
| H A D | binary-paddr.test | 1 ## The computed LMA of a section in a PT_LOAD equals sh_offset-p_offset+p_paddr. 75 ## LMA = sh_offset-p_offset+p_paddr = 0x2000-0x2000+0x4000 = 0x4000. 88 ## Check that we use sh_offset instead of sh_addr to decide where to write section contents. 121 ## LMA = sh_offset-p_offset+p_paddr = 0x2000-0x2000+0x3000 = 0x3000. 244 ## sh_offset is not aligned.
|
| /llvm-project-15.0.7/llvm/lib/InterfaceStub/ |
| H A D | ELFObjHandler.cpp | 266 DynSym.Content.write(Data + DynSym.Shdr.sh_offset); in write() 267 DynStr.Content.write(Data + DynStr.Shdr.sh_offset); in write() 268 DynTab.Content.write(Data + DynTab.Shdr.sh_offset); in write() 269 ShStrTab.Content.write(Data + ShStrTab.Shdr.sh_offset); in write() 292 StrTab.Shdr.sh_offset = StrTab.Offset; in fillStrTabShdr() 305 SymTab.Shdr.sh_offset = SymTab.Offset; in fillSymTabShdr() 321 DynTab.Shdr.sh_offset = DynTab.Offset; in fillDynTabShdr() 369 return ElfFile.base() + DynSymHdr->sh_offset; in getDynSym()
|
| /llvm-project-15.0.7/compiler-rt/lib/hwasan/scripts/ |
| H A D | hwasan_symbolize | 69 sh_offset, = struct.unpack_from('<Q', buffer=mv, offset=sh_offset_offset) 71 return sh_offset, sh_size 83 sh_offset, sh_size = handle_Shdr(mv[start: start + Shdr_size]) 84 if sh_offset is None: 86 note_hdr = mv[sh_offset: sh_offset + sh_size]
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/ |
| H A D | packed-relocs.test | 56 …ons from SHT_ANDROID_RELA section with index 1: section [index 1] has a sh_offset (0xffffffff) + s… 60 …tions in SHT_ANDROID_RELA section with index 1: section [index 1] has a sh_offset (0xffffffff) + s… 63 …ons from SHT_ANDROID_RELA section with index 1: section [index 1] has a sh_offset (0xffffffff) + s… 139 …ions from SHT_ANDROID_REL section with index 1: section [index 1] has a sh_offset (0xffffffff) + s… 143 …ations in SHT_ANDROID_REL section with index 1: section [index 1] has a sh_offset (0xffffffff) + s… 146 …ions from SHT_ANDROID_REL section with index 1: section [index 1] has a sh_offset (0xffffffff) + s…
|
| H A D | dependent-libraries.test | 53 …PENDENT_LIBRARIES section at index 4 is broken: section [index 4] has a sh_offset (0xffff0000) + s… 67 …PENDENT_LIBRARIES section at index 4 is broken: section [index 4] has a sh_offset (0xffff0000) + s…
|
| H A D | addrsig.test | 87 # BROKEN-SEC-LLVM-NEXT: warning: '[[FILE]]': section [index 1] has a sh_offset (0xffffffff) + sh_si… 90 # BROKEN-SEC-GNU: warning: '[[FILE]]': section [index 1] has a sh_offset (0xffffffff) + sh_size …
|
| H A D | linker-options.test | 12 …content of the SHT_LLVM_LINKER_OPTIONS section: section [index 5] has a sh_offset (0xffffffff) + s…
|
| H A D | stack-sizes.test | 109 …h index 3 from SHT_SYMTAB section with index 7: section [index 7] has a sh_offset (0xffffeeee) + s… 110 …g: '[[FILE]]': unable to read the symbol table: section [index 7] has a sh_offset (0xffffeeee) + s… 113 …h index 2 from SHT_SYMTAB section with index 7: section [index 7] has a sh_offset (0xffffeeee) + s… 115 …h index 1 from SHT_SYMTAB section with index 7: section [index 7] has a sh_offset (0xffffeeee) + s… 120 …h index 3 from SHT_SYMTAB section with index 7: section [index 7] has a sh_offset (0xffffeeee) + s… 121 …g: '[[FILE]]': unable to read the symbol table: section [index 7] has a sh_offset (0xffffeeee) + s… 127 …h index 2 from SHT_SYMTAB section with index 7: section [index 7] has a sh_offset (0xffffeeee) + s… 132 …h index 1 from SHT_SYMTAB section with index 7: section [index 7] has a sh_offset (0xffffeeee) + s…
|
| /llvm-project-15.0.7/lld/test/ELF/invalid/ |
| H A D | verneed-shared.test | 6 ## sh_offset(SHT_GNU_verneed) is out of bounds. 9 # SHOFFSET: error: {{.*}}.so: section [index 1] has a sh_offset (0xffffffff) + sh_size (0x0) that i…
|
| /llvm-project-15.0.7/bolt/runtime/ |
| H A D | instr.cpp | 683 BinContents + StringTblHeader->sh_offset + Shdr->sh_name); in readDescriptions() 696 *reinterpret_cast<uint32_t *>(BinContents + Shdr->sh_offset + 20); in readDescriptions() 698 BinContents + Shdr->sh_offset + 24 + IndCallDescSize); in readDescriptions() 700 *reinterpret_cast<uint32_t *>(BinContents + Shdr->sh_offset + 28 + in readDescriptions() 703 BinContents + Shdr->sh_offset + 24); in readDescriptions() 705 BinContents + Shdr->sh_offset + 28 + IndCallDescSize); in readDescriptions() 706 Result.FuncDescriptions = BinContents + Shdr->sh_offset + 32 + in readDescriptions() 709 BinContents + Shdr->sh_offset + 32 + IndCallDescSize + in readDescriptions()
|
| /llvm-project-15.0.7/llvm/lib/ExecutionEngine/Orc/ |
| H A D | DebugObjectManagerPlugin.cpp | 97 if (Header->sh_offset + Header->sh_size > Buffer.size()) in validateInBounds() 101 Name, Start + Header->sh_offset, in validateInBounds() 102 Start + Header->sh_offset + Header->sh_size, Start, End), in validateInBounds()
|
| /llvm-project-15.0.7/llvm/tools/obj2yaml/ |
| H A D | elf2yaml.cpp | 260 if (SecHdr.sh_offset != ExpectedOffset) in dumpSectionOffsets() 261 Sec.Offset = (yaml::Hex64)SecHdr.sh_offset; in dumpSectionOffsets() 266 ExpectedOffset = SecHdr.sh_offset; in dumpSectionOffsets() 268 ExpectedOffset = SecHdr.sh_offset + SecHdr.sh_size; in dumpSectionOffsets() 369 return Sections[cast<ELFYAML::Section>(A.get())->OriginalSecNdx].sh_offset < in dump() 370 Sections[cast<ELFYAML::Section>(B.get())->OriginalSecNdx].sh_offset; in dump() 448 SHdr.sh_offset >= Phdr.p_offset && in isInSegment() 449 (SHdr.sh_offset + SHdr.sh_size <= Phdr.p_offset + Phdr.p_filesz); in isInSegment() 458 if (SHdr.sh_size == 0 && (SHdr.sh_offset == Phdr.p_offset || in isInSegment() 459 SHdr.sh_offset == Phdr.p_offset + Phdr.p_filesz)) in isInSegment()
|
| /llvm-project-15.0.7/llvm/test/tools/yaml2obj/ELF/ |
| H A D | section-offset.yaml | 97 ## field only overrides the sh_offset value of the .foo section. 112 ## field only affects the sh_offset value of the .foo section (overrides it).
|
| H A D | override-shoffset.yaml | 1 ## Check we are able to set custom sh_offset field
|
| /llvm-project-15.0.7/llvm/test/Object/ |
| H A D | invalid.test | 44 # INVALID-STRTAB-SIZE: error: '[[FILE]]': section [index 1] has a sh_offset (0x70) + sh_size (0xfff… 251 ## has a broken sh_offset (past the end of the file). 258 …relocations from [[TYPE]] section with index 1: section [index 1] has a sh_offset (0x10000) + sh_s… 283 ## .shstrtab has a broken sh_offset so large that sh_offset + sh_size overflows the platform addres… 295 # INVALID-SECTION-SIZE2-NEXT: warning: '[[FILE]]': section [index 1] has a sh_offset (0xffffffff) +… 371 # BROKEN-SECSHOFFSET: error: '[[FILE]]': section [index 1] has a sh_offset (0xffff0000) + sh_size (…
|
| /llvm-project-15.0.7/lldb/source/Plugins/ObjectFile/ELF/ |
| H A D | ELFHeader.h | 164 elf_off sh_offset; ///< Start of section from beginning of file. member
|
| H A D | ObjectFileELF.cpp | 1421 const elf_off sh_offset = header.e_shoff; in GetSectionHeaderInfo() local 1423 if (sh_data.SetData(object_data, sh_offset, sh_size) != sh_size) in GetSectionHeaderInfo() 1439 const Elf64_Off offset = sheader.sh_offset; in GetSectionHeaderInfo() 1458 if (section_size && (data.SetData(object_data, sheader.sh_offset, in GetSectionHeaderInfo() 1524 data.SetData(object_data, sheader.sh_offset, section_size) == section_size) in GetSectionHeaderInfo() 1530 if (section_size && (data.SetData(object_data, sheader.sh_offset, in GetSectionHeaderInfo() 1551 if (section_size && (data.SetData(object_data, sheader.sh_offset, in GetSectionHeaderInfo() 1878 header.sh_offset, // Offset of this section in the file. in CreateSections() 3168 sh.sh_offset, sh.sh_size); in DumpELFSectionHeader()
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-nm/ |
| H A D | dynamic.test | 153 ## from a broken SHT_GNU_verdef section. In this case its sh_offset 160 …content of SHT_GNU_verdef section with index 2: section [index 2] has a sh_offset (0xffffffff) + s…
|
| /llvm-project-15.0.7/llvm/include/llvm/Object/ |
| H A D | ELF.h | 329 if (Shdr.sh_offset + Shdr.sh_size > getBufSize()) { in notes_begin() 331 createError("invalid offset (0x" + Twine::utohexstr(Shdr.sh_offset) + in notes_begin() 335 return Elf_Note_Iterator(base() + Shdr.sh_offset, Shdr.sh_size, Err); in notes_begin() 492 uintX_t Offset = Sec.sh_offset; in getSectionContentsAsArray() 781 FakeShdr.sh_offset = Phdr.p_offset; in createFakeSections()
|
| /llvm-project-15.0.7/llvm/test/tools/llvm-readobj/ELF/RISCV/ |
| H A D | attributes-invalid.test | 67 … the SHT_RISCV_ATTRIBUTES section with index 1: section [index 1] has a sh_offset (0xffffffff) + s…
|