Skip to content

Commit

Permalink
Remove options.RelaxELFRelocations
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
MaskRay committed Mar 8, 2024
1 parent 22868a4 commit 0cf9f62
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/CodeGen_Internal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -610,7 +610,6 @@ void get_target_options(const llvm::Module &module, llvm::TargetOptions &options
options.UseInitArray = true;
options.FloatABIType =
use_soft_float_abi ? llvm::FloatABI::Soft : llvm::FloatABI::Hard;
options.RelaxELFRelocations = false;
options.MCOptions.ABIName = mabi;
}

Expand Down

0 comments on commit 0cf9f62

Please sign in to comment.