(self)
Remove unnecessary functions and data

        :return: None
Remove unnecessary functions and data
Remove unnecessary functions and data
def remove_unnecessary_stuff(self):
        """
        Remove unnecessary functions and data

        :return: None
        """

        # determine if the binary is compiled against glibc
        is_glibc = False
        for dep in self.project.loader.main_object.deps:
            if dep.lower() in {'libc.so.6', 'libc.so'}:
                is_glibc = True
                break
        if is_glibc:
            self.remove_unnecessary_stuff_glibc()
def remove_unnecessary_stuff ( self ) : # determine if the binary is compiled against glibc is_glibc = False for dep in self . project . loader . main_object . deps : if dep . lower ( ) in { 'libc.so.6' , 'libc.so' } : is_glibc = True break if is_glibc : self . remove_unnecessary_stuff_glibc ( )