Skip to content

Commit

Permalink
Set reloc slot to be external linkage
Browse files Browse the repository at this point in the history
  • Loading branch information
pchintalapudi committed Mar 3, 2023
1 parent fe0600d commit bdf65f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/llvm-multiversioning.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ void CloneCtx::prepare_slots()
extern_relocs[F] = GV;
} else {
auto id = get_func_id(F);
auto GV = new GlobalVariable(M, F->getType(), false, GlobalValue::InternalLinkage, Constant::getNullValue(F->getType()), F->getName() + ".reloc_slot");
auto GV = new GlobalVariable(M, F->getType(), false, GlobalValue::ExternalLinkage, Constant::getNullValue(F->getType()), F->getName() + ".reloc_slot");
GV->setVisibility(GlobalValue::HiddenVisibility);
const_relocs[id] = GV;
}
Expand Down

0 comments on commit bdf65f4

Please sign in to comment.