Skip to content

Commit

Permalink
Merge pull request #916 from no92/rtdl-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennisbonke authored Sep 24, 2023
2 parents 187df8d + ebe3b71 commit af6a250
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions options/rtdl/generic/linker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1475,15 +1475,13 @@ void Loader::_processRelocations(Relocation &rel) {
// on some architectures, R_GLOB_DAT can be defined to other relocations
case R_GLOB_DAT: {
__ensure(rel.symbol_index());
__ensure(p);
uintptr_t symbol_addr = p ? p->virtualAddress() : 0;
rel.relocate(symbol_addr + rel.addend_norel());
} break;
#endif

case R_ABSOLUTE: {
__ensure(rel.symbol_index());
__ensure(p);
uintptr_t symbol_addr = p ? p->virtualAddress() : 0;
rel.relocate(symbol_addr + rel.addend_rel());
} break;
Expand Down

0 comments on commit af6a250

Please sign in to comment.