From: Seva Alekseyev Date: Tue, 27 Oct 2020 12:36:46 +0000 (-0400) Subject: DebugSectionDescriptor.size initialized with decompressed section size (#339) X-Git-Tag: v0.27~5 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e5ed0eee289e65253a65452ea5c7cd282a05e918;p=pyelftools.git DebugSectionDescriptor.size initialized with decompressed section size (#339) --- diff --git a/elftools/elf/elffile.py b/elftools/elf/elffile.py index e6cf7c2..011a16f 100644 --- a/elftools/elf/elffile.py +++ b/elftools/elf/elffile.py @@ -689,7 +689,7 @@ class ELFFile(object): stream=section_stream, name=section.name, global_offset=section['sh_offset'], - size=section['sh_size'], + size=section._decompressed_size, address=section['sh_addr']) @staticmethod