uroboros-diversification/src/analysis/reassemble_symbol_get.py
def section_offset(self, name, addr):
        """
        Get address offset from section start
        :param name: section name
        :param addr: integer address
        :return: integer offset
        :raise Exception: if invalid section name
        """
        if name in self.sec:
            return addr - self.sec[name].sec_begin_addr
        raise Exception('failed to find section offset')

        Get address offset from section start
        :param name: section name
        :param addr: integer address
        :return: integer offset
        :raise Exception: if invalid section name
        
Get address offset from section start
Get address offset from section start
def section_offset(self, name, addr):
        if name in self.sec:
            return addr - self.sec[name].sec_begin_addr
        raise Exception('failed to find section offset')
def section_offset ( self , name , addr ) : if name in self . sec : return addr - self . sec [ name ] . sec_begin_addr raise Exception ( 'failed to find section offset' )
Get address offset from section start
Get address offset from section start
"""
        Get address offset from section start
        :param name: section name
        :param addr: integer address
        :return: integer offset
        :raise Exception: if invalid section name
        """
None
if invalid section name
if invalid section name
Exception
self
name
None
addr
None