1. Chris Perl
  2. objexplo

Commits

Chris Perl  committed f7001cd

Fixing up Relocation exception

  • Participants
  • Parent commits 80cd098
  • Branches default

Comments (0)

Files changed (1)

File elf.py

View file
     # Dynamically define these attributes and this function if we are 32 bit
     @property
     def r_sym(self):
-        shift_amt = 8 if self.elfclass == ElfIdent.ELFCLASS32 else 32
+        shift_amt = 8 if self.elf_hdr.elfclass == ElfIdent.ELFCLASS32 else 32
         return self.r_info >> shift_amt
 
     @property
     def r_type(self):
-        mask = 0xff if self.elfclass == ElfIdent.ELFCLASS32 else 0xffffffff
+        mask = 0xff if self.elf_hdr.elfclass == ElfIdent.ELFCLASS32 else 0xffffffff
         return self.r_info & mask
 
     @property