parameters: (binary)
return_statement: return [line.split(' ')[1] for line in lines[2:]]
docstring: Parses the __DATA,__mod_init_func segment of |binary| and returns a list
    of string hexadecimal addresses of the module initializers.
docstring_summary: Parses the __DATA,__mod_init_func segment of |binary| and returns a list
    of string hexadecimal addresses of the module initializers.
docstring_tokens: Parses the __DATA __mod_init_func segment of |binary| and returns a list of string hexadecimal addresses of the module initializers .
function: def GetModuleInitializers(binary):
    """Parses the __DATA,__mod_init_func segment of |binary| and returns a list
    of string hexadecimal addresses of the module initializers.
    """
    # The -v flag will display the addresses in a usable form (as opposed to
    # just its on-disk little-endian byte representation).
    otool = ['otool', '-v', '-s', '__DATA', '__mod_init_func', binary]
    lines = subprocess.check_output(otool).strip().split('\n')
  
    # Skip the first two header lines and then get the address of the
    # initializer in the second column. The first address is the address
    # of the initializer pointer.
    #   out/gn/Chromium Framework.unstripped:
    #   Contents of (__DATA,__mod_init_func) section
    #   0x0000000008761498 0x000000000385d120
    return [line.split(' ')[1] for line in lines[2:]]
function_tokens: def GetModuleInitializers ( binary ) : # The -v flag will display the addresses in a usable form (as opposed to # just its on-disk little-endian byte representation). otool = [ 'otool' , '-v' , '-s' , '__DATA' , '__mod_init_func' , binary ] lines = subprocess . check_output ( otool ) . strip ( ) . split ( '\n' ) # Skip the first two header lines and then get the address of the # initializer in the second column. The first address is the address # of the initializer pointer. #   out/gn/Chromium Framework.unstripped: #   Contents of (__DATA,__mod_init_func) section #   0x0000000008761498 0x000000000385d120 return [ line . split ( ' ' ) [ 1 ] for line in lines [ 2 : ] ]