Displaying 1 result from an estimated 1 matches for "gotindex".
Did you mean:
getindex
2015 Jan 26
2
[LLVMdev] [llvm] r188726 - Adding PIC support for ELF on x86_64 platforms
...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;
+ for (int i = 0, e = GOTEntries.size(); i != e; ++i) {
+ if (GOTEntries[i].SymbolName == 0) {
+ if (getSectionLoadAddress(GOTEntries[i].SectionID) == LoadAddress &&
+ GOTEntries[i].Offset == Offset) {
+ GOTIndex = i;
+ Sym...