From 466817d0cfb40b4e6192338a69b3b476a280b123 Mon Sep 17 00:00:00 2001 From: Chris Coetzee Date: Wed, 2 Nov 2016 15:18:08 +0200 Subject: [PATCH] Fix relocation_bytesize typo --- elftools/elf/relocation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elftools/elf/relocation.py b/elftools/elf/relocation.py index c663d1c..690309f 100644 --- a/elftools/elf/relocation.py +++ b/elftools/elf/relocation.py @@ -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( -- 2.30.2