We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ce359a commit 9c31066Copy full SHA for 9c31066
src/rustllvm/PassWrapper.cpp
@@ -374,6 +374,10 @@ extern "C" LLVMTargetMachineRef LLVMRustCreateTargetMachine(
374
375
Options.EmitStackSizeSection = EmitStackSizeSection;
376
377
+ // Needed to work around bug in ld.bfd:
378
+ // https://sourceware.org/bugzilla/show_bug.cgi?id=24784.
379
+ Options.RelaxELFRelocations = true;
380
+
381
Optional<CodeModel::Model> CM;
382
if (RustCM != LLVMRustCodeModel::None)
383
CM = fromRust(RustCM);
0 commit comments