search for: gotsectionid

Displaying 1 result from an estimated 1 matches for "gotsectionid".

2015 Jan 26
2
[LLVMdev] [llvm] r188726 - Adding PIC support for ELF on x86_64 platforms
...le::mips: + case Triple::mipsel: + Result = sizeof(uint32_t); + break; + default: llvm_unreachable("Unsupported CPU type!"); + } + return Result; +} + +uint64_t RuntimeDyldELF::findGOTEntry(uint64_t LoadAddress, + uint64_t Offset) { + assert(GOTSectionID != 0 + && "Attempting to lookup GOT entry but the GOT was never allocated."); + if (GOTSectionID == 0) { + return 0; + } + + size_t GOTEntrySize = getGOTEntrySize(); + + // Find the matching entry in our vector. + int GOTIndex = -1; + uint64_t SymbolOffset = 0; +...