Skip to content

Commit 1b8c1e6

Browse files
Merge pull request swiftlang#82060 from AnthonyLatsis/myself/rebranch
IRGen: Disable indirect symbol replacement with GOTPCREL for AArch64/ELF
2 parents a339e28 + 086688c commit 1b8c1e6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/IRGen/IRGen.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ swift::getIRTargetOptions(const IRGenOptions &Opts, ASTContext &Ctx) {
132132
// FIXME: We should do this entirely through Clang, for consistency.
133133
TargetOptions TargetOpts;
134134

135+
// Linker support for this is not widespread enough.
136+
TargetOpts.SupportIndirectSymViaGOTPCRel_AArch64_ELF = false;
137+
135138
// Explicitly request debugger tuning for LLDB which is the default
136139
// on Darwin platforms but not on others.
137140
TargetOpts.DebuggerTuning = llvm::DebuggerKind::LLDB;

0 commit comments

Comments
 (0)