From: Eli Bendersky Date: Wed, 26 Oct 2016 13:39:49 +0000 (-0700) Subject: Update CHANGES + cosmetic cleanup X-Git-Tag: v0.25~55 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4bf52260f78e12194b48893c02c04a76d40235ba;p=pyelftools.git Update CHANGES + cosmetic cleanup --- diff --git a/CHANGES b/CHANGES index 6916e03..e444e97 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,12 @@ Changelog ========= ++ Version 0.25 (??) + + - Don't attempt to hex/string dump SHT_NOBITS sections in readelf (#119). + - Add Python 3.5 testing to the tox file. + - Minor bugfixes (#118) + + Version 0.24 (04.08.2016) - Retrieve symbols by name - get_symbol_by_name (#58). @@ -17,7 +23,6 @@ Changelog - Support for zlib-compressed debug sections (#102) - Support for DWARF v4 line programs (#82) - + Version 0.23 (08.11.2014) - Minimal Python 2.x version raised to 2.7 diff --git a/elftools/elf/relocation.py b/elftools/elf/relocation.py index 2b9a48b..c663d1c 100644 --- a/elftools/elf/relocation.py +++ b/elftools/elf/relocation.py @@ -11,7 +11,8 @@ from collections import namedtuple from ..common.exceptions import ELFRelocationError from ..common.utils import elf_assert, struct_parse from .sections import Section -from .enums import ENUM_RELOC_TYPE_i386, ENUM_RELOC_TYPE_x64, ENUM_RELOC_TYPE_MIPS +from .enums import ( + ENUM_RELOC_TYPE_i386, ENUM_RELOC_TYPE_x64, ENUM_RELOC_TYPE_MIPS) class Relocation(object): @@ -248,5 +249,3 @@ class RelocationHandler(object): ENUM_RELOC_TYPE_x64['R_X86_64_32S']: _RELOCATION_RECIPE_TYPE( bytesize=4, has_addend=True, calc_func=_reloc_calc_sym_plus_addend), } - - diff --git a/elftools/elf/sections.py b/elftools/elf/sections.py index 76f9f2a..99550ac 100644 --- a/elftools/elf/sections.py +++ b/elftools/elf/sections.py @@ -45,7 +45,7 @@ class Section(object): return self.header == other.header except AttributeError: return False - + def __hash__(self): return hash(self.header)