mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-12 13:38:21 +00:00
Reinstate r91208 to fix available_externally linkage for globals, with
nlewycky's fix to add -rdynamic so the JIT can look symbols up in Linux builds of the JITTests binary. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91250 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -681,7 +681,7 @@ void *JIT::getOrEmitGlobalVariable(const GlobalVariable *GV) {
|
||||
if (Ptr) return Ptr;
|
||||
|
||||
// If the global is external, just remember the address.
|
||||
if (GV->isDeclaration()) {
|
||||
if (GV->isDeclaration() || GV->hasAvailableExternallyLinkage()) {
|
||||
#if HAVE___DSO_HANDLE
|
||||
if (GV->getName() == "__dso_handle")
|
||||
return (void*)&__dso_handle;
|
||||
|
Reference in New Issue
Block a user