Skip to content

Commit

Permalink
don't parse relocations if we're not going to use them; see #231
Browse files Browse the repository at this point in the history
  • Loading branch information
rhelmot committed Apr 29, 2020
1 parent 3903726 commit 92f14c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cle/backends/elf/elf.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,6 +657,8 @@ def __parse_rpath(self, runpath, rpath):
return parts

def __register_relocs(self, section, dynsym=None, force_jmprel=False):
if not self.loader._perform_relocations:
return

got_min = got_max = 0

Expand Down

0 comments on commit 92f14c0

Please sign in to comment.