Skip to content

Commit 3c2021c

Browse files
committed
Remove options.RelaxELFRelocations
This `TargetOption` controls whether LLVM should enable R_X86_64_GOTPCRELX/R_X86_64_REX_GOTPCRELX relocations, which are supported by GNU ld versions newer than 2015. Setting the option to false is no longer necessary.
1 parent 8cc4f02 commit 3c2021c

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/CodeGen_Internal.cpp

-5
Original file line numberDiff line numberDiff line change
@@ -610,11 +610,6 @@ void get_target_options(const llvm::Module &module, llvm::TargetOptions &options
610610
options.UseInitArray = true;
611611
options.FloatABIType =
612612
use_soft_float_abi ? llvm::FloatABI::Soft : llvm::FloatABI::Hard;
613-
#if LLVM_VERSION >= 190
614-
options.MCOptions.X86RelaxRelocations = false;
615-
#else
616-
options.RelaxELFRelocations = false;
617-
#endif
618613
options.MCOptions.ABIName = mabi;
619614
}
620615

0 commit comments

Comments
 (0)