[ELF] Implement getImplicitAddend and enable checkDynamicRelocsDefault for PPC32

This commit is contained in:
Fangrui Song
2023-09-15 22:49:18 -07:00
parent 591266c56c
commit 0cbe49eade
4 changed files with 15 additions and 2 deletions

View File

@@ -1714,7 +1714,7 @@ static void setConfigs(opt::InputArgList &args) {
// have support for reading Elf_Rel addends, so we only enable for a subset.
#ifndef NDEBUG
bool checkDynamicRelocsDefault =
!llvm::is_contained({EM_AMDGPU, EM_HEXAGON, EM_PPC}, m);
!llvm::is_contained({EM_AMDGPU, EM_HEXAGON}, m);
#else
bool checkDynamicRelocsDefault = false;
#endif