• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/Object/

Lines Matching defs:XCOFFObjectFile

1 //===--- XCOFFObjectFile.cpp - XCOFF object file implementation -----------===//
9 // This file defines the XCOFFObjectFile class.
13 #include "llvm/Object/XCOFFObjectFile.h"
81 void XCOFFObjectFile::checkSectionAddress(uintptr_t Addr,
96 XCOFFObjectFile::toSection32(DataRefImpl Ref) const {
105 XCOFFObjectFile::toSection64(DataRefImpl Ref) const {
113 const XCOFFSymbolEntry *XCOFFObjectFile::toSymbolEntry(DataRefImpl Ref) const {
123 const XCOFFFileHeader32 *XCOFFObjectFile::fileHeader32() const {
128 const XCOFFFileHeader64 *XCOFFObjectFile::fileHeader64() const {
134 XCOFFObjectFile::sectionHeaderTable32() const {
140 XCOFFObjectFile::sectionHeaderTable64() const {
145 void XCOFFObjectFile::moveSymbolNext(DataRefImpl &Symb) const {
158 XCOFFObjectFile::getStringTableEntry(uint32_t Offset) const {
175 XCOFFObjectFile::getCFileName(const XCOFFFileAuxEnt *CFileEntPtr) const {
182 Expected<StringRef> XCOFFObjectFile::getSymbolName(DataRefImpl Symb) const {
196 Expected<uint64_t> XCOFFObjectFile::getSymbolAddress(DataRefImpl Symb) const {
201 uint64_t XCOFFObjectFile::getSymbolValueImpl(DataRefImpl Symb) const {
206 uint64_t XCOFFObjectFile::getCommonSymbolSizeImpl(DataRefImpl Symb) const {
213 XCOFFObjectFile::getSymbolType(DataRefImpl Symb) const {
219 XCOFFObjectFile::getSymbolSection(DataRefImpl Symb) const {
233 void XCOFFObjectFile::moveSectionNext(DataRefImpl &Sec) const {
238 Expected<StringRef> XCOFFObjectFile::getSectionName(DataRefImpl Sec) const {
242 uint64_t XCOFFObjectFile::getSectionAddress(DataRefImpl Sec) const {
251 uint64_t XCOFFObjectFile::getSectionIndex(DataRefImpl Sec) const {
260 uint64_t XCOFFObjectFile::getSectionSize(DataRefImpl Sec) const {
270 XCOFFObjectFile::getSectionContents(DataRefImpl Sec) const {
288 uint64_t XCOFFObjectFile::getSectionAlignment(DataRefImpl Sec) const {
294 bool XCOFFObjectFile::isSectionCompressed(DataRefImpl Sec) const {
300 bool XCOFFObjectFile::isSectionText(DataRefImpl Sec) const {
304 bool XCOFFObjectFile::isSectionData(DataRefImpl Sec) const {
309 bool XCOFFObjectFile::isSectionBSS(DataRefImpl Sec) const {
314 bool XCOFFObjectFile::isSectionVirtual(DataRefImpl Sec) const {
319 relocation_iterator XCOFFObjectFile::section_rel_begin(DataRefImpl Sec) const {
331 relocation_iterator XCOFFObjectFile::section_rel_end(DataRefImpl Sec) const {
343 void XCOFFObjectFile::moveRelocationNext(DataRefImpl &Rel) const {
347 uint64_t XCOFFObjectFile::getRelocationOffset(DataRefImpl Rel) const {
366 symbol_iterator XCOFFObjectFile::getRelocationSymbol(DataRefImpl Rel) const {
380 uint64_t XCOFFObjectFile::getRelocationType(DataRefImpl Rel) const {
386 void XCOFFObjectFile::getRelocationTypeName(
395 Expected<uint32_t> XCOFFObjectFile::getSymbolFlags(DataRefImpl Symb) const {
401 basic_symbol_iterator XCOFFObjectFile::symbol_begin() const {
409 basic_symbol_iterator XCOFFObjectFile::symbol_end() const {
418 section_iterator XCOFFObjectFile::section_begin() const {
424 section_iterator XCOFFObjectFile::section_end() const {
431 uint8_t XCOFFObjectFile::getBytesInAddress() const { return is64Bit() ? 8 : 4; }
433 StringRef XCOFFObjectFile::getFileFormatName() const {
437 Triple::ArchType XCOFFObjectFile::getArch() const {
441 SubtargetFeatures XCOFFObjectFile::getFeatures() const {
445 bool XCOFFObjectFile::isRelocatableObject() const {
451 Expected<uint64_t> XCOFFObjectFile::getStartAddress() const {
457 size_t XCOFFObjectFile::getFileHeaderSize() const {
461 size_t XCOFFObjectFile::getSectionHeaderSize() const {
466 bool XCOFFObjectFile::is64Bit() const {
470 uint16_t XCOFFObjectFile::getMagic() const {
474 Expected<DataRefImpl> XCOFFObjectFile::getSectionByNum(int16_t Num) const {
485 XCOFFObjectFile::getSymbolSectionName(const XCOFFSymbolEntry *SymEntPtr) const {
505 bool XCOFFObjectFile::isReservedSectionNumber(int16_t SectionNumber) {
509 uint16_t XCOFFObjectFile::getNumberOfSections() const {
514 int32_t XCOFFObjectFile::getTimeStamp() const {
518 uint16_t XCOFFObjectFile::getOptionalHeaderSize() const {
523 uint32_t XCOFFObjectFile::getSymbolTableOffset32() const {
527 int32_t XCOFFObjectFile::getRawNumberOfSymbolTableEntries32() const {
534 uint32_t XCOFFObjectFile::getLogicalNumberOfSymbolTableEntries32() const {
540 uint64_t XCOFFObjectFile::getSymbolTableOffset64() const {
544 uint32_t XCOFFObjectFile::getNumberOfSymbolTableEntries64() const {
548 uintptr_t XCOFFObjectFile::getEndOfSymbolTableAddress() const {
556 void XCOFFObjectFile::checkSymbolEntryPointer(uintptr_t SymbolEntPtr) const {
571 uint32_t XCOFFObjectFile::getSymbolIndex(uintptr_t SymbolEntPtr) const {
578 XCOFFObjectFile::getSymbolNameByIndex(uint32_t Index) const {
590 uint16_t XCOFFObjectFile::getFlags() const {
594 const char *XCOFFObjectFile::getSectionNameInternal(DataRefImpl Sec) const {
598 uintptr_t XCOFFObjectFile::getSectionHeaderTableAddress() const {
602 int32_t XCOFFObjectFile::getSectionFlags(DataRefImpl Sec) const {
606 XCOFFObjectFile::XCOFFObjectFile(unsigned int Type, MemoryBufferRef Object)
611 ArrayRef<XCOFFSectionHeader64> XCOFFObjectFile::sections64() const {
618 ArrayRef<XCOFFSectionHeader32> XCOFFObjectFile::sections32() const {
629 Expected<uint32_t> XCOFFObjectFile::getLogicalNumberOfRelocationEntries(
645 XCOFFObjectFile::relocations(const XCOFFSectionHeader32 &Sec) const {
667 XCOFFObjectFile::parseStringTable(const XCOFFObjectFile *Obj, uint64_t Offset) {
696 Expected<std::unique_ptr<XCOFFObjectFile>>
697 XCOFFObjectFile::create(unsigned Type, MemoryBufferRef MBR) {
699 std::unique_ptr<XCOFFObjectFile> Obj;
700 Obj.reset(new XCOFFObjectFile(Type, MBR));
760 return XCOFFObjectFile::create(FileType, MemBufRef);