Skip to content

Commit

Permalink
[SOL] Do not check relocs for SBF
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasSte committed Aug 18, 2024
1 parent b07498f commit 0f67554
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lld/ELF/Driver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1754,7 +1754,8 @@ static void setConfigs(opt::InputArgList &args) {
// builds and disabled otherwise. This check is enabled when writeAddends is
// true.
#ifndef NDEBUG
bool checkDynamicRelocsDefault = true;
// The SBF and BPF target for Solana do not support checking dynamic relocs.
bool checkDynamicRelocsDefault = m != EM_BPF && m != EM_SBF;
#else
bool checkDynamicRelocsDefault = false;
#endif
Expand Down

0 comments on commit 0f67554

Please sign in to comment.