# -------------------------------------------------------------------------------# elftools: ehabi/structs.py## Encapsulation of Construct structs for parsing an EHABI, adjusted for# correct endianness and word-size.## LeadroyaL (leadroyal@qq.com)# This code is in the public domain# -------------------------------------------------------------------------------from ..construct import UBInt32, ULInt32, Structclass EHABIStructs(object):""" Accessible attributes:EH_index_struct:Struct of item in section .ARM.exidx.EH_table_struct:Struct of item in section .ARM.extab."""def __init__(self, little_endian):self._little_endian = little_endianself._create_structs()def _create_structs(self):if self._little_endian:self.EHABI_uint32 = ULInt32else:self.EHABI_uint32 = UBInt32self._create_exception_handler_index()self._create_exception_handler_table()def _create_exception_handler_index(self):self.EH_index_struct = Struct('EH_index',self.EHABI_uint32('word0'),self.EHABI_uint32('word1'))def _create_exception_handler_table(self):self.EH_table_struct = Struct('EH_table',self.EHABI_uint32('word0'),)
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。