uroboros-diversification/src/analysis/reassemble_symbol_get.py
def process(self, lbs, withoff=False):
        """
        Add labels in the corresponding addresses of data sections
        :param lbs: list of tuples (section name, absolute address or offset)
        :param withoff: if True lbs contains absolute addresses
        """
        ds = {'.data': self.data_list, '.rodata': self.rodata_list,
              '.got': self.got_list, '.bss': self.bss_list}
        for i in xrange(len(lbs)):
            n, l = lbs[i]
            if n in ds:
                if withoff:
                    off = l - self.section_addr(n)
                else:
                    off = l
                    l += self.section_addr(n)
                ds[n][off] = ('S_' + dec_hex(l) + ': ', ds[n][off][1])

        Add labels in the corresponding addresses of data sections
        :param lbs: list of tuples (section name, absolute address or offset)
        :param withoff: if True lbs contains absolute addresses
        
Add labels in the corresponding addresses of data sections
Add labels in the corresponding addresses of data sections
def process(self, lbs, withoff=False):
        ds = {'.data': self.data_list, '.rodata': self.rodata_list,
              '.got': self.got_list, '.bss': self.bss_list}
        for i in xrange(len(lbs)):
            n, l = lbs[i]
            if n in ds:
                if withoff:
                    off = l - self.section_addr(n)
                else:
                    off = l
                    l += self.section_addr(n)
                ds[n][off] = ('S_' + dec_hex(l) + ': ', ds[n][off][1])
def process ( self , lbs , withoff = False ) : ds = { '.data' : self . data_list , '.rodata' : self . rodata_list , '.got' : self . got_list , '.bss' : self . bss_list } for i in xrange ( len ( lbs ) ) : n , l = lbs [ i ] if n in ds : if withoff : off = l - self . section_addr ( n ) else : off = l l += self . section_addr ( n ) ds [ n ] [ off ] = ( 'S_' + dec_hex ( l ) + ': ' , ds [ n ] [ off ] [ 1 ] )
Add labels in the corresponding addresses of data sections
Add labels in the corresponding addresses of data sections
"""
        Add labels in the corresponding addresses of data sections
        :param lbs: list of tuples (section name, absolute address or offset)
        :param withoff: if True lbs contains absolute addresses
        """
self
lbs
list of tuples (section name, absolute address or offset)
list of tuples ( section name absolute address or offset )
withoff
if True lbs contains absolute addresses
if True lbs contains absolute addresses