Fix relocation_bytesize typo
authorChris Coetzee <chriscz93@gmail.com>
Wed, 2 Nov 2016 13:18:08 +0000 (15:18 +0200)
committerChris Coetzee <chriscz93@gmail.com>
Wed, 2 Nov 2016 13:18:08 +0000 (15:18 +0200)
elftools/elf/relocation.py

index c663d1c5c982a41aabfa8b674e6f78868e286a46..690309f0ad17377e4d374195245ceab3dff8b2c8 100644 (file)
@@ -169,7 +169,7 @@ class RelocationHandler(object):
             value_struct = self.elffile.structs.Elf_word64('')
         else:
             raise ELFRelocationError('Invalid bytesize %s for relocation' %
-                    recipe_bytesize)
+                    recipe.bytesize)
 
         # 1. Read the value from the stream (with correct size and endianness)
         original_value = struct_parse(