Skip to content
Snippets Groups Projects
Commit 639f0149 authored by Ben Gamari's avatar Ben Gamari Committed by Marge Bot
Browse files

rts/linker/Elf: Resolve _GLOBAL_OFFSET_TABLE_

parent 8115abc2
No related branches found
No related tags found
No related merge requests found
......@@ -821,6 +821,13 @@ SymbolAddr* lookupDependentSymbol (SymbolName* lbl, ObjectCode *dependent, SymTy
NULL);
}
#if defined(OBJFORMAT_ELF)
// Resolve references to the GOT if we know the origin object
if (dependent && strncmp(lbl, "_GLOBAL_OFFSET_TABLE_", 21) == 0) {
return dependent->info->got_start;
}
#endif
if (!ghciLookupSymbolInfo(symhash, lbl, &pinfo)) {
IF_DEBUG(linker_verbose, debugBelch("lookupSymbol: symbol '%s' not found, trying dlsym\n", lbl));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment