tools/binary_size/libsupersize/readelf.py
def CollectRelocationAddresses(elf_path, tool_prefix):
  """Returns the list of addresses that are targets for relative relocations."""
  cmd = [path_util.GetReadElfPath(tool_prefix), '--relocs', elf_path]
  ret = subprocess.check_output(cmd, encoding='ascii').splitlines()
  # Grab first column from (sample output) '02de6d5c  00000017 R_ARM_RELATIVE'
  return [int(l.split(maxsplit=1)[0], 16) for l in ret if 'R_ARM_RELATIVE' in l]
Returns the list of addresses that are targets for relative relocations.
Returns the list of addresses that are targets for relative relocations.
Returns the list of addresses that are targets for relative relocations .
def CollectRelocationAddresses(elf_path, tool_prefix):
  cmd = [path_util.GetReadElfPath(tool_prefix), '--relocs', elf_path]
  ret = subprocess.check_output(cmd, encoding='ascii').splitlines()
  return [int(l.split(maxsplit=1)[0], 16) for l in ret if 'R_ARM_RELATIVE' in l]
def CollectRelocationAddresses ( elf_path , tool_prefix ) : cmd = [ path_util . GetReadElfPath ( tool_prefix ) , '--relocs' , elf_path ] ret = subprocess . check_output ( cmd , encoding = 'ascii' ) . splitlines ( ) return [ int ( l . split ( maxsplit = 1 ) [ 0 ] , 16 ) for l in ret if 'R_ARM_RELATIVE' in l ]
Returns the list of addresses that are targets for relative relocations.
Returns the list of addresses that are targets for relative relocations .
"""Returns the list of addresses that are targets for relative relocations.""" # Grab first column from (sample output) '02de6d5c  00000017 R_ARM_RELATIVE'
elf_path
tool_prefix